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

java.lang.Object
  extended by org.apache.tuscany.sca.implementation.java.injection.ArrayMultiplicityObjectFactory
All Implemented Interfaces:
ObjectFactory<java.lang.Object>

public class ArrayMultiplicityObjectFactory
extends java.lang.Object
implements ObjectFactory<java.lang.Object>

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


Constructor Summary
ArrayMultiplicityObjectFactory(java.lang.Class interfaceType, java.util.List<ObjectFactory<?>> factories)
           
 
Method Summary
 java.lang.Object 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

ArrayMultiplicityObjectFactory

public ArrayMultiplicityObjectFactory(java.lang.Class interfaceType,
                                      java.util.List<ObjectFactory<?>> factories)
Method Detail

getInstance

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