Tuscany Core

org.apache.tuscany.core.builder.impl
Class ListMultiplicityObjectFactory

java.lang.Object
  extended by org.apache.tuscany.core.builder.impl.ListMultiplicityObjectFactory
All Implemented Interfaces:
ObjectFactory<List>

public class ListMultiplicityObjectFactory
extends Object
implements ObjectFactory<List>

Resolves targets configured in a multiplicity by delegating to object factories and returning an List containing object instances

Version:
$Rev$ $Date$

Constructor Summary
ListMultiplicityObjectFactory(List<ObjectFactory> factories)
           
 
Method Summary
 List getInstance()
          Return a instance of the type that this factory creates.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListMultiplicityObjectFactory

public ListMultiplicityObjectFactory(List<ObjectFactory> factories)
Method Detail

getInstance

public List getInstance()
                 throws ObjectCreationException
Description copied from interface: ObjectFactory
Return a instance of the type that this factory creates.

Specified by:
getInstance in interface ObjectFactory<List>
Returns:
a instance from this factory
Throws:
ObjectCreationException

Tuscany Core

-