We start on the basic of Sun Java Coding Conventions. Then additional rules apply:
- tabulation is 4 spaces.
- javadoc MUST exist on all methods.
- Import statements must be fully qualified for clarity.
Rules for code packaging:
- package names follow the pattern infusion.<module>.<section>.<subsection> Ex: infusion.trader.prez.actions.SearchDealsAction for an Action class in Infusion Trader demo application
- Following default sections are defined:
- prez - presentation layer
- prez.actions - action
- prez.frames - frames
- biz - business layer (domain model and services packaged in a functional manner)
- da - data access layer
Rules for code repository structure (for a given module):
- code sources and other static resources (.properties and .xml embedded in the jar with the code) are in src/java
- tests sources are in src/test
- resources required for the tests are in conf/test
- configuration files for integration in a container are in conf/<container>
