Changeset 25
- Timestamp:
- 09/26/07 16:37:43 (1 year ago)
- Location:
- trunk/src/planet/util
- Files:
-
- 1 added
- 1 modified
-
ApplicationProperties.java (added)
-
Properties.java (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/planet/util/Properties.java
r2 r25 110 110 public static final String FACTORIES_ENDPOINT = "FACTORIES_ENDPOINT"; 111 111 112 /** 113 * Application property: Default key specified in the properties file that 114 * identifies implementation class for ApplicationProperties interface. 115 */ 116 public static final String APPLICATION_PROPERTIES = "APPLICATION_PROPERTIES"; 117 118 112 119 113 120 /* *********************** SIMULATOR PROPERTIES NAMES ***********************/ … … 352 359 */ 353 360 public static Class factoriesEndPoint = null; 361 /** 362 * Application property: Implementation class for PropertiesInitializer interface. 363 */ 364 public static Class applicationProperties = null; 365 /** 366 * Application property: Instance of the implementation class for 367 * PropertiesInitializer interface for the current application. 368 */ 369 public static ApplicationProperties applicationPropertiesInstance = null; 370 354 371 355 372 … … 941 958 Properties.factoriesApplication = properties.getPropertyAsClass(FACTORIES_APPLICATION); 942 959 Properties.factoriesEndPoint = properties.getPropertyAsClass(FACTORIES_ENDPOINT); 960 961 Properties.applicationProperties = properties.getPropertyAsClass(APPLICATION_PROPERTIES); 943 962 944 963 //testing the correctness of the values … … 947 966 Interfaces.ensureImplementedInterfaceOrClass(Properties.factoriesApplication, Interfaces.FACTORIES_APPLICATION, FACTORIES_APPLICATION); 948 967 Interfaces.ensureImplementedInterfaceOrClass(Properties.factoriesEndPoint, Interfaces.FACTORIES_ENDPOINT, FACTORIES_ENDPOINT); 968 969 //ending the loading process 970 Properties.applicationPropertiesInstance = (ApplicationProperties)loadPropertiesInitializer(Properties.applicationProperties); 971 949 972 } 950 973
