org.apache.tuscany.core.injection
Class MethodInjector<T>
java.lang.Object
org.apache.tuscany.core.injection.MethodInjector<T>
- All Implemented Interfaces:
- Injector<T>
public class MethodInjector<T>
- extends Object
- implements Injector<T>
Injects a value created by an ObjectFactory
using a given method
- Version:
- $Rev: 408581 $ $Date: 2006-05-21 23:34:24 -0700 (Sun, 21 May 2006) $
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 |
MethodInjector
public MethodInjector(Method method,
ObjectFactory<?> objectFactory)
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
-