Changeset 27

Show
Ignore:
Timestamp:
09/26/07 22:23:03 (1 year ago)
Author:
alexander
Message:

Registering an Application Properties Class should be optional

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/planet/util/Properties.java

    r25 r27  
    959959        Properties.factoriesEndPoint           = properties.getPropertyAsClass(FACTORIES_ENDPOINT); 
    960960 
    961         Properties.applicationProperties         = properties.getPropertyAsClass(APPLICATION_PROPERTIES); 
    962961         
    963962        //testing the correctness of the values 
     
    968967 
    969968        //ending the loading process 
    970         Properties.applicationPropertiesInstance = (ApplicationProperties)loadPropertiesInitializer(Properties.applicationProperties); 
     969        if (properties.getProperty(APPLICATION_PROPERTIES) != null) { 
     970                Properties.applicationProperties         = properties.getPropertyAsClass(APPLICATION_PROPERTIES); 
     971                Properties.applicationPropertiesInstance = (ApplicationProperties)loadPropertiesInitializer(Properties.applicationProperties); 
     972        } 
    971973 
    972974    }