org.apache.tuscany.sca.implementation.java.injection
Class MethodInjector<T>

java.lang.Object
  extended by org.apache.tuscany.sca.implementation.java.injection.MethodInjector<T>
All Implemented Interfaces:
Injector<T>

public class MethodInjector<T>
extends java.lang.Object
implements Injector<T>

Injects a value created by an ObjectFactory using a given method


Constructor Summary
MethodInjector(java.lang.reflect.Method aMethod, ObjectFactory<?> objectFactory)
           
 
Method Summary
 void inject(T instance)
          Inject a value on the given instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodInjector

public MethodInjector(java.lang.reflect.Method aMethod,
                      ObjectFactory<?> objectFactory)
Method Detail

inject

public void inject(T instance)
            throws ObjectCreationException
Description copied from interface: Injector
Inject a value on the given instance

Specified by:
inject in interface Injector<T>
Throws:
ObjectCreationException