org.apache.tuscany.sca.implementation.java.injection
Class JavaPropertyValueObjectFactory

java.lang.Object
  extended by org.apache.tuscany.sca.implementation.java.injection.JavaPropertyValueObjectFactory
All Implemented Interfaces:
PropertyValueFactory
Direct Known Subclasses:
SpringPropertyValueObjectFactory

public class JavaPropertyValueObjectFactory
extends java.lang.Object
implements PropertyValueFactory


Nested Class Summary
 class JavaPropertyValueObjectFactory.ArrayObjectFactoryImpl
           
 class JavaPropertyValueObjectFactory.ListObjectFactoryImpl
           
 class JavaPropertyValueObjectFactory.ObjectFactoryImpl
           
 class JavaPropertyValueObjectFactory.ObjectFactoryImplBase
           
 
Constructor Summary
JavaPropertyValueObjectFactory(Mediator mediator)
           
 
Method Summary
<B> B
createPropertyValue(ComponentProperty property, java.lang.Class<B> type)
          This method will create an instance of the value for the specified Property.
 ObjectFactory createValueFactory(Property property, java.lang.Object propertyValue, java.lang.Class javaType)
           
 ObjectFactory createValueFactory(Property property, java.lang.Object propertyValue, JavaElementImpl javaElement)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaPropertyValueObjectFactory

public JavaPropertyValueObjectFactory(Mediator mediator)
Method Detail

createValueFactory

public ObjectFactory createValueFactory(Property property,
                                        java.lang.Object propertyValue,
                                        JavaElementImpl javaElement)

createValueFactory

public ObjectFactory createValueFactory(Property property,
                                        java.lang.Object propertyValue,
                                        java.lang.Class javaType)

createPropertyValue

public <B> B createPropertyValue(ComponentProperty property,
                                 java.lang.Class<B> type)
This method will create an instance of the value for the specified Property.

Specified by:
createPropertyValue in interface PropertyValueFactory
Type Parameters:
B - Type type of the property value being looked up
Parameters:
property - The Property from which to retrieve the property value
type - The type of the property value being retrieved from the Property
Returns:
the value for the Property