Java J2EE Naming Convention (NEAF)
Java J2EE Naming Convention (NEAF)
Page 1 of 10
eGovernment Authority
Table of Contents
1.
2.
3.
4.
5.
6.
7.
8.
Introduction ................................................................................................................. 3
Purpose ........................................................................................................................ 3
Scope............................................................................................................................ 3
Definitions, Acronyms, and Abbreviations .................................................................. 3
References ................................................................................................................... 3
Overview ...................................................................................................................... 3
Naming Convention ..................................................................................................... 4
Naming Convention for Basic Java Components ......................................................... 4
8.1
8.2
8.3
8.4
8.5
8.6
8.7
8.8
9.
9.1
9.2
9.3
9.4
Page 2 of 10
eGovernment Authority
2. Purpose
The purpose of this document is to define the naming convention for Java/J2EE components of
EGovernment Portal application.
3. Scope
The scope of this document is to define the naming convention for basic Java artifacts and Java/J2EE
components in the EGovernment Portal application.
5. References
Please refer Portal Application Framework.
6. Overview
This document details the naming conventions for the basic Java artifacts. It also details the naming
conventions for Java/J2EE components in the Portal Application Framework.
Page 3 of 10
eGovernment Authority
7. Naming Convention
Defining the naming convention is vital because they lead to greater consistency within your code and
the code of your teammates. Greater consistency leads to code that is easier to understand, which
means it is easier to develop and to maintain. Thus, it reduces the overall cost of the applications that
you create.
You have to remember that your Java code will exist for a long time even after you have moved on to
other projects. An important goal during development is to ensure that you can transition your work to
another developer or to another team of developers so they can continue to maintain and enhance
your work without having to invest an unreasonable effort to understand your code. Code that is
difficult to understand runs the risk of being scrapped and rewritten.
Page 4 of 10
eGovernment Authority
Page 5 of 10
eGovernment Authority
Page 6 of 10
eGovernment Authority
Page 7 of 10
eGovernment Authority
Page 8 of 10
eGovernment Authority
Page 9 of 10
eGovernment Authority
Page 10 of 10