@Override public final void afterPropertiesSet() throws IOException { if (this.singleton) { this.singletonInstance = createProperties(); } }
@Override @Nullable public final Properties getObject() throws IOException { if (this.singleton) { return this.singletonInstance; } else { return createProperties(); } }
@Override public final void afterPropertiesSet() throws IOException { if (this.singleton) { this.singletonInstance = createProperties(); } }
@Override @Nullable public final Properties getObject() throws IOException { if (this.singleton) { return this.singletonInstance; } else { return createProperties(); } }
public final Properties getObject() throws IOException { if (this.singleton) { return this.singletonInstance; } else { return createProperties(); } }
public final void afterPropertiesSet() throws IOException { if (this.singleton) { this.singletonInstance = createProperties(); } }
@Override public final void afterPropertiesSet() throws IOException { if (this.singleton) { this.singletonInstance = createProperties(); } }
@Override public final Properties getObject() throws IOException { if (this.singleton) { return this.singletonInstance; } else { return createProperties(); } }
protected Properties createProperties() throws IOException { Properties createdProperties = super.createProperties(); for( Map.Entry<Object, Object> entry : createdProperties.entrySet() ) { String key = (String) entry.getKey(); String systemPropertyValue = System.getProperty( key ); if( systemPropertyValue != null ) { LOG.info( "Overriding property {} with value {} because it is specified as a system property", key, systemPropertyValue ); createdProperties.setProperty( key, systemPropertyValue ); } } return createdProperties; } }