|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.beans.factory.config.AbstractFactoryBean org.reactive.configuration.CommonsConfigurationFactoryBean
public class CommonsConfigurationFactoryBean
A factory bean used to create instances of commons-configuration's composite configurations from a variety of resources.
An example of the factory bean configuration required for Commons Configuration
<bean id="configuration" class="org.reactive.configuration.CommonsConfigurationFactoryBean"> <property name="xmlResources"> <set> <bean class="org.springframework.beans.factory.config.ResourceFactoryBean"> <property name="location"> <value>classpath:/org/reactive/beans/factory/config/ConfigurationPlaceholderProcessorTest_placeholders.xml</value> </property> </bean> </set> </property> <property name="propertiesResources"> <set> <bean class="org.springframework.beans.factory.config.ResourceFactoryBean"> <property name="location"> <value>classpath:/org/reactive/beans/factory/config/ConfigurationPlaceholderProcessorTest_placeholders.properties</value> </property> </bean> </set> </property> </bean>
DefaultResourceLoader
Field Summary |
---|
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean |
---|
logger |
Constructor Summary | |
---|---|
CommonsConfigurationFactoryBean()
|
Method Summary | |
---|---|
protected java.lang.Object |
createInstance()
Creates an instance of composite configuration based using the resources provided by setPropertiesResources(java.util.Set) , setXmlPropertiesResources(java.util.Set) and
setXmlResources(java.util.Set) . |
java.lang.Class |
getObjectType()
|
void |
setJNDIConfigurationEnabled(boolean JNDIConfigurationEnabled)
Sets the boolean flag determining if the JNDI configuration should be added to the composite configuration |
void |
setJndiPrefix(java.lang.String jndiPrefix)
Sets the prefix used when querying a JNDI context. |
void |
setPropertiesResources(java.util.Set propertiesResources)
Sets a set of resources used to create properties based configurations. |
void |
setXmlPropertiesResources(java.util.Set xmlPropertiesResources)
Sets a set of resources used to create xml properies configuration. |
void |
setXmlResources(java.util.Set xmlResources)
Sets a ste of resources used to create xml based configurations. |
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean |
---|
afterPropertiesSet, getObject, isSingleton, setSingleton |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommonsConfigurationFactoryBean()
Method Detail |
---|
public void setJndiPrefix(java.lang.String jndiPrefix)
jndiPrefix
- the prefix used when querying a JNDI contextpublic void setJNDIConfigurationEnabled(boolean JNDIConfigurationEnabled)
JNDIConfigurationEnabled
- true if JNDI configuration should be enabled, otherwise falsepublic void setPropertiesResources(java.util.Set propertiesResources)
propertiesResources
- a list of resources used to create properties based configurationspublic void setXmlResources(java.util.Set xmlResources)
xmlResources
- a list of resources used to create xml based configurationspublic void setXmlPropertiesResources(java.util.Set xmlPropertiesResources)
xmlPropertiesResources
- a list of resources used to create xml based configurationsprotected java.lang.Object createInstance() throws java.lang.Exception
setPropertiesResources(java.util.Set)
, setXmlPropertiesResources(java.util.Set)
and
setXmlResources(java.util.Set)
.
createInstance
in class org.springframework.beans.factory.config.AbstractFactoryBean
java.lang.Exception
- If an error occurrs while creating the configuration from the provided resourcespublic java.lang.Class getObjectType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |