JeeWiz Home  
The Model-Driven System Builder

JeeWiz Architect's Guide
 
Contents  >   11.  How To
 


11.2 Change Naming Standards

The distributed JeeWiz system incorporates a set of standards for naming. This covers naming of

  • directories
  • files
  • classes and related names like interfaces, XML files etc..
It is very easy to change naming standards in JeeWiz, because they are all defined in properties files.

There are two types of properties files:

  • top-level names for the whole build are defined in system.properties. These follow the inheritance chain of the models. The main properties for the J2EE system are in the J2EE models' system.properties. These names can be overridden for one build by setting the values in the build properties (build.jwp) file for a personal build, or by creating a system.properties file in the specification directory (but only override the ones you want to overrid), or more generally by creating your own model with its own system.properties, which can be used in other builds.
  • names related to particular objects are defined in component.properties files for a particular object. For example, the naming scheme for Java interfaces can be seen in jeewiz/resources/java/control/jwclass/component.properties. These names are normally a simple calculation based on the specification values, and the names are used in the renderings. This gives the renderings a symbolic way of referencing output structures, without fixing them in the templates and patterns. It means that changes to names and directory structures can be made very quickly and reliably.

    There are a number of facilities to support overlaying and fixing of values. These are described in the chapter on the build process.

The upshot of this is that you can very quickly change the whole naming scheme to conform to your project's standards just by changing the component.properties entries.

 


Copyright (c) 2001-2008 New Technology/enterprise Ltd.