Joda System API

org.joda.property.impl
Class ProxyPropertyFactory

java.lang.Object
  |
  +--org.joda.property.JodaFactory
        |
        +--org.joda.property.impl.ProxyPropertyFactory

public class ProxyPropertyFactory
extends JodaFactory

Default implementation of a Factory for creating properties. This creates the default set of Property classes and PropertyObjects by Proxy.

Author:
Stephen Colebourne

Field Summary
static ProxyPropertyFactory INSTANCE
          The single instance of the factory
 
Constructor Summary
protected ProxyPropertyFactory()
          Constructor.
 
Method Summary
 Bean createBean(java.lang.Class type, java.lang.String name)
          Create a new top level Bean.
protected  Bean createBeanFromClass(java.lang.Class type, java.lang.String name)
           
protected  Bean createBeanFromInterface(java.lang.Class type, java.lang.String name)
           
 BeanList createBeanList(java.lang.Class type)
          Create a wrapper for a list of beans that can have a typecast get method.
protected  Property createProperty(Bean bean, PropertyMetaData propMetaData)
          Create a property for the specified bean
 Property createProperty(Bean bean, java.lang.String name, java.lang.Class intface)
          Create a Property on the bean
 Property createProperty(Bean bean, java.lang.String name, java.lang.Class intface, java.lang.Class[] types)
          Create a Property on the bean
 Property createProperty(Bean bean, java.lang.String name, java.lang.Class intface, java.lang.Class[] types, PropertyData data)
          Create a Property on the bean
protected  PropertyData createPropertyData(Property property)
          Create a property data object for the specified property.
protected  PropertyData createPropertyData(Property property, PropertyMetaData propMetaData)
          Create a property data object for the specified property.
 
Methods inherited from class org.joda.property.JodaFactory
create, create, createBean, createList, getInstance, isFireEvents, setFireEvents, setPropertyFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final ProxyPropertyFactory INSTANCE
The single instance of the factory

Constructor Detail

ProxyPropertyFactory

protected ProxyPropertyFactory()
Constructor.

Method Detail

createBean

public Bean createBean(java.lang.Class type,
                       java.lang.String name)
Description copied from class: JodaFactory
Create a new top level Bean.

Specified by:
createBean in class JodaFactory
Parameters:
type - the bean interface (extends Bean)
name - the name of the bean
Returns:
a new top level Bean
See Also:
JodaFactory.createBean(Class, String)

createBeanFromClass

protected Bean createBeanFromClass(java.lang.Class type,
                                   java.lang.String name)
See Also:
JodaFactory.createBean(Class, String)

createBeanFromInterface

protected Bean createBeanFromInterface(java.lang.Class type,
                                       java.lang.String name)
See Also:
JodaFactory.createBean(Class, String)

createProperty

protected Property createProperty(Bean bean,
                                  PropertyMetaData propMetaData)
Create a property for the specified bean


createPropertyData

protected PropertyData createPropertyData(Property property,
                                          PropertyMetaData propMetaData)
Create a property data object for the specified property.


createPropertyData

protected PropertyData createPropertyData(Property property)
Create a property data object for the specified property.


createBeanList

public BeanList createBeanList(java.lang.Class type)
Create a wrapper for a list of beans that can have a typecast get method.

Specified by:
createBeanList in class JodaFactory
Parameters:
type - the bean list interface (extends BeanList)

createProperty

public Property createProperty(Bean bean,
                               java.lang.String name,
                               java.lang.Class intface)
Create a Property on the bean

Specified by:
createProperty in class JodaFactory
Parameters:
bean - the bean the property is to be attached to
name - the name of the property
intface - the property interface (extends Property)
Returns:
a new Property

createProperty

public Property createProperty(Bean bean,
                               java.lang.String name,
                               java.lang.Class intface,
                               java.lang.Class[] types)
Create a Property on the bean

Specified by:
createProperty in class JodaFactory
Parameters:
bean - the bean the property is to be attached to
name - the name of the property
intface - the property interface (extends Property)
types - the property types (do not extend Property)
Returns:
a new Property

createProperty

public Property createProperty(Bean bean,
                               java.lang.String name,
                               java.lang.Class intface,
                               java.lang.Class[] types,
                               PropertyData data)
Create a Property on the bean

Specified by:
createProperty in class JodaFactory
Parameters:
bean - the bean the property is to be attached to
name - the name of the property
intface - the property interface (extends Property)
types - the property types (do not extend Property)
data - the property data object to use
Returns:
a new Property

Joda System API

Copyright © 2001-2003 Stephen Colebourne. All Rights Reserved.