org.jboss.config.plugins.property
Class PropertyConfiguration

java.lang.Object
  extended by org.jboss.config.plugins.AbstractConfiguration
      extended by org.jboss.config.plugins.property.PropertyConfiguration
All Implemented Interfaces:
Configuration

public class PropertyConfiguration
extends AbstractConfiguration

PropertyConfiguration.

Version:
$Revision: 70359 $
Author:
Adrian Brock

Field Summary
protected  Properties properties
          The properties
 
Constructor Summary
PropertyConfiguration()
          Create a configuration
PropertyConfiguration(Properties properties)
          Create a configuration
 
Method Summary
protected  BeanInfoFactory createDefaultBeanInfoFactory()
          Create the default bean info factory
protected  ClassAdapterFactory createDefaultClassAdapterFactory()
          Create the default class adapter factory
protected  JoinpointFactoryBuilder createDefaultJoinpointFactoryBuilder()
          Create the default joinpoint factory builder
protected  TypeInfoFactory createDefaultTypeInfoFactory()
          Create the default type info factory
 Properties getProperties()
          Get the properties
protected  Object loadFromProperties(String propertyName, String defaultValue, Class<? extends Object> targetClass)
          Load an object from the specified properties
 
Methods inherited from class org.jboss.config.plugins.AbstractConfiguration
getBeanInfo, getBeanInfo, getBeanInfo, getBeanInfo, getBeanInfo, getBeanInfo, getBeanInfoFactory, getClassAdapterFactory, getClassInfo, getClassInfo, getJoinpointFactoryBuilder, getTypeInfo, getTypeInfo, getTypeInfoFactory, setBeanInfoFactory, setClassAdapterFactory, setJoinpointFactoryBuilder, setTypeInfoFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

properties

protected Properties properties
The properties

Constructor Detail

PropertyConfiguration

public PropertyConfiguration()
Create a configuration


PropertyConfiguration

public PropertyConfiguration(Properties properties)
Create a configuration

Parameters:
properties - the properties
Method Detail

getProperties

public Properties getProperties()
Get the properties

Returns:
the properties

createDefaultBeanInfoFactory

protected BeanInfoFactory createDefaultBeanInfoFactory()
                                                throws Throwable
Description copied from class: AbstractConfiguration
Create the default bean info factory

Specified by:
createDefaultBeanInfoFactory in class AbstractConfiguration
Returns:
the bean info factory
Throws:
Throwable - for any error

createDefaultClassAdapterFactory

protected ClassAdapterFactory createDefaultClassAdapterFactory()
                                                        throws Throwable
Description copied from class: AbstractConfiguration
Create the default class adapter factory

Specified by:
createDefaultClassAdapterFactory in class AbstractConfiguration
Returns:
the class adapter factory
Throws:
Throwable - for any error

createDefaultTypeInfoFactory

protected TypeInfoFactory createDefaultTypeInfoFactory()
                                                throws Throwable
Description copied from class: AbstractConfiguration
Create the default type info factory

Specified by:
createDefaultTypeInfoFactory in class AbstractConfiguration
Returns:
the type info factory
Throws:
Throwable - for any error

createDefaultJoinpointFactoryBuilder

protected JoinpointFactoryBuilder createDefaultJoinpointFactoryBuilder()
                                                                throws Throwable
Description copied from class: AbstractConfiguration
Create the default joinpoint factory builder

Specified by:
createDefaultJoinpointFactoryBuilder in class AbstractConfiguration
Returns:
the joinpoint factory builder
Throws:
Throwable - for any error

loadFromProperties

protected Object loadFromProperties(String propertyName,
                                    String defaultValue,
                                    Class<? extends Object> targetClass)
                             throws Throwable
Load an object from the specified properties

Parameters:
propertyName - the property name
defaultValue - the default value
targetClass - the target class
Returns:
the object
Throws:
Throwable - for any error


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.