List of usage examples for org.apache.commons.configuration.beanutils BeanHelper registeredFactoryNames
public static Set registeredFactoryNames()
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.// w w w .j a va 2s . 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 . jav a 2 s. c o m*/ */ private void registerBeanFactory() { synchronized (IConfigurationBuilder.class) { if (!BeanHelper.registeredFactoryNames().contains(CONFIG_BEAN_FACTORY_NAME)) { BeanHelper.registerBeanFactory(CONFIG_BEAN_FACTORY_NAME, new ConfigurationBeanFactory()); } } }