public class CommonsConfigurationFactoryBean extends Object implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.FactoryBean<Properties>
Properties,
org.springframework.core.io.support.PropertiesLoaderSupport| Constructor and Description |
|---|
CommonsConfigurationFactoryBean() |
CommonsConfigurationFactoryBean(org.apache.commons.configuration.Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
org.apache.commons.configuration.CompositeConfiguration |
getConfiguration()
Getter for the underlying CompositeConfiguration object.
|
org.apache.commons.configuration.Configuration[] |
getConfigurations() |
org.springframework.core.io.Resource[] |
getLocations() |
Properties |
getObject() |
Class<Properties> |
getObjectType() |
boolean |
isSingleton() |
boolean |
isThrowExceptionOnMissing() |
void |
setConfigurationListener(org.apache.commons.configuration.event.ConfigurationListener listener) |
void |
setConfigurations(org.apache.commons.configuration.Configuration[] configurations)
Set the commons configurations objects which will be used as properties.
|
void |
setLocations(org.springframework.core.io.Resource[] locations)
Shortcut for loading configuration from Spring resources.
|
void |
setThrowExceptionOnMissing(boolean throwExceptionOnMissing)
Set the underlying Commons CompositeConfiguration throwExceptionOnMissing
flag.
|
public CommonsConfigurationFactoryBean()
public CommonsConfigurationFactoryBean(org.apache.commons.configuration.Configuration configuration)
public Properties getObject() throws Exception
getObject in interface org.springframework.beans.factory.FactoryBean<Properties>ExceptionFactoryBean.getObject()public Class<Properties> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<Properties>FactoryBean.getObjectType()public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<Properties>FactoryBean.isSingleton()public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionInitializingBean.afterPropertiesSet()public org.apache.commons.configuration.Configuration[] getConfigurations()
public void setConfigurations(org.apache.commons.configuration.Configuration[] configurations)
configurations - public org.springframework.core.io.Resource[] getLocations()
public void setLocations(org.springframework.core.io.Resource[] locations)
locations - public boolean isThrowExceptionOnMissing()
public void setThrowExceptionOnMissing(boolean throwExceptionOnMissing)
throwExceptionOnMissing - public org.apache.commons.configuration.CompositeConfiguration getConfiguration()
public void setConfigurationListener(org.apache.commons.configuration.event.ConfigurationListener listener)
Copyright © 2018. All rights reserved.