Apache Tuscany SCA Kernel Sub-Project

org.apache.tuscany.spi.loader
Interface PropertyObjectFactory


public interface PropertyObjectFactory

A factory that will create an ObjectFactory for a property

Version:
$Rev: 453804 $ $Date: 2006-10-06 16:10:24 -0700 (Fri, 06 Oct 2006) $

Method Summary
<T> ObjectFactory<T>
createObjectFactory(Property<T> property, PropertyValue<T> propertyValue)
          Return an ObjectFactory for instances of a property defined in an XML.
 

Method Detail

createObjectFactory

<T> ObjectFactory<T> createObjectFactory(Property<T> property,
                                         PropertyValue<T> propertyValue)
                                     throws LoaderException
Return an ObjectFactory for instances of a property defined in an XML. The ObjectFactory must return instances that can safely be supplied to component implementations. If the instance is mutable and isolation between components is required, then the factory must clone or otherwise protect the implementation from unexpected modifications by other implementation instances.

Parameters:
property - the Property definition that the resulting ObjectFactory must be able to assign to
propertyValue - The component configuration of the property
Returns:
an ObjectFactory that can produce instances that can be assigned to the supplied Property
Throws:
LoaderException - if there is a problem creating the ObjectFactory

Apache Tuscany SCA Kernel Sub-Project

-