List of usage examples for org.apache.commons.configuration.beanutils BeanHelper registerBeanFactory
public static void registerBeanFactory(String name, BeanFactory factory)
From source file:nz.co.senanque.madura.configuration.MaduraConfiguration.java
public MaduraConfiguration() { BeanHelper.registerBeanFactory("nz.co.senanque.madura.configuration.ConstructorBeanFactory", new nz.co.senanque.madura.configuration.ConstructorBeanFactory()); BeanHelper.registerBeanFactory("nz.co.senanque.madura.configuration.XMLBeanFactory", new XMLBeanFactory()); BeanHelper.registerBeanFactory("nz.co.senanque.madura.configuration.SetterBeanFactory", new SetterBeanFactory()); BeanHelper.registerBeanFactory("nz.co.senanque.madura.configuration.ListBeanFactory", new ListBeanFactory()); }
From source file:org.ssh.comm.conf.CustomConfigurationBuilder.java
/** * Registers the bean factory used by this class if necessary. This method * is called by the constructor to ensure that the required bean factory is * available.//from www . j av a2 s. c o m */ private void registerBeanFactory() { synchronized (CustomConfigurationBuilder.class) { if (!BeanHelper.registeredFactoryNames().contains(CONFIG_BEAN_FACTORY_NAME)) { BeanHelper.registerBeanFactory(CONFIG_BEAN_FACTORY_NAME, new ConfigurationBeanFactory()); } } }
From source file:org.ssh.test.conf.IConfigurationBuilder.java
/** * Registers the bean factory used by this class if necessary. This method * is called by the constructor to ensure that the required bean factory is * available./*from ww w. j a v a 2s . com*/ */ private void registerBeanFactory() { synchronized (IConfigurationBuilder.class) { if (!BeanHelper.registeredFactoryNames().contains(CONFIG_BEAN_FACTORY_NAME)) { BeanHelper.registerBeanFactory(CONFIG_BEAN_FACTORY_NAME, new ConfigurationBeanFactory()); } } }