Example usage for org.apache.commons.configuration.beanutils BeanHelper registeredFactoryNames

List of usage examples for org.apache.commons.configuration.beanutils BeanHelper registeredFactoryNames

Introduction

In this page you can find the example usage for org.apache.commons.configuration.beanutils BeanHelper registeredFactoryNames.

Prototype

public static Set registeredFactoryNames() 

Source Link

Document

Returns a set with the names of all currently registered bean factories.

Usage

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());
        }
    }
}