CodingConventions

We start on the basic of Sun Java Coding Conventions. Then additional rules apply:

  1. tabulation is 4 spaces.
  2. javadoc MUST exist on all methods.
  3. Import statements must be fully qualified for clarity.

Rules for code packaging:

  1. package names follow the pattern infusion.<module>.<section>.<subsection> Ex: infusion.trader.prez.actions.SearchDealsAction for an Action class in Infusion Trader demo application
  2. 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):

  1. code sources and other static resources (.properties and .xml embedded in the jar with the code) are in src/java
  2. tests sources are in src/test
  3. resources required for the tests are in conf/test
  4. configuration files for integration in a container are in conf/<container>
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.