Tuscany Core

org.apache.tuscany.core.loader
Interface StAXPropertyFactory<T>

All Known Implementing Classes:
JNDIPropertyFactory, StringParserPropertyFactory

public interface StAXPropertyFactory<T>

A factory that will create an ObjectFactory for a property by parsing a StAX XMLStreamReader.

Version:
$Rev$ $Date$

Method Summary
 ObjectFactory<T> createObjectFactory(javax.xml.stream.XMLStreamReader reader, org.apache.tuscany.model.assembly.Property property)
          Return an ObjectFactory for instances of a property defined in an XML stream.
 

Method Detail

createObjectFactory

ObjectFactory<T> createObjectFactory(javax.xml.stream.XMLStreamReader reader,
                                     org.apache.tuscany.model.assembly.Property property)
                                     throws javax.xml.stream.XMLStreamException,
                                            ConfigurationLoadException
Return an ObjectFactory for instances of a property defined in an XML stream.

Parameters:
reader - the reader to use to access the XML stream
property - the Property definition that the resulting ObjectFactory must be able to assign to
Returns:
an ObjectFactory that can produce instances that can be assigned to the supplied Property
Throws:
javax.xml.stream.XMLStreamException - if there is a problem reading the stream
ConfigurationLoadException - if there is a problem creating the ObjectFactory

Tuscany Core

-