org.apache.tuscany.sca.implementation.java.context
Interface InstanceFactoryProvider<T>

All Known Implementing Classes:
JavaInstanceFactoryProvider

public interface InstanceFactoryProvider<T>


Method Summary
 InstanceFactory<T> createFactory()
          Create an instance factory that can be used to create component instances.
 java.lang.Class<T> getImplementationClass()
          Return the implementation class.
 void setObjectFactory(JavaElementImpl element, ObjectFactory<?> objectFactory)
          Sets an object factory for an injection site
 

Method Detail

getImplementationClass

java.lang.Class<T> getImplementationClass()
Return the implementation class.

Returns:
the implementation class.

setObjectFactory

void setObjectFactory(JavaElementImpl element,
                      ObjectFactory<?> objectFactory)
Sets an object factory for an injection site

Parameters:
element - the injection site name
objectFactory - the object factory

createFactory

InstanceFactory<T> createFactory()
Create an instance factory that can be used to create component instances.

Returns:
a new instance factory