Package dev.db.biz.configuration.property.annotations

Examples of dev.db.biz.configuration.property.annotations.PropertyConfiguration


  public synchronized void loadPropertyConfigurationObject( Object configurationObject ) throws Exception {
    if( configurationObject == null ) {
      throw new IllegalArgumentException( "configurationObject cannot be null" );
    }
   
    PropertyConfiguration propertyConfiguration = configurationObject.getClass().getAnnotation( PropertyConfiguration.class );
   
    validateConfigurationObject( propertyConfiguration );
   
    Properties properties = loadingLogic.getProperties( propertyConfiguration.name() );
   
    loadPropertyConfigurationObject( configurationObject, properties, "" );
  }
View Full Code Here


   */
  public synchronized void refresh() throws Exception {
    LOG.fine( "refreshing configuration  " );
   
    for( Class<?> configurationObjectClass : listenerRegistrations.keySet() ) {
      PropertyConfiguration propertyConfiguration = configurationObjectClass.getAnnotation( PropertyConfiguration.class );
     
      // should not happen but anyway
      if( propertyConfiguration == null ) {
        continue;
      }
     
      if( loadingLogic.isCached( propertyConfiguration.name() ) ) {
        continue;
      }
     
      Object configurationObject = loadPropertyConfigurationObject( configurationObjectClass );
      fireConfigurationListeners(configurationObject, listenerRegistrations.get(configurationObjectClass));
View Full Code Here

TOP

Related Classes of dev.db.biz.configuration.property.annotations.PropertyConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.