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<java.util.List>

public class ListMultiplicityObjectFactory
extends java.lang.Object
implements ObjectFactory<java.util.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(java.util.List<ObjectFactory> factories)
           
 
Method Summary
 java.util.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(java.util.List<ObjectFactory> factories)
Method Detail

getInstance

public java.util.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<java.util.List>
Returns:
a instance from this factory
Throws:
ObjectCreationException

Tuscany Core

-