org.apache.tuscany.core.injection
Class FieldInjector<T>
java.lang.Object
org.apache.tuscany.core.injection.FieldInjector<T>
- All Implemented Interfaces:
- Injector<T>
public class FieldInjector<T>
- extends Object
- implements Injector<T>
Injects a value created by an ObjectFactory
on a given field
- Version:
- $Rev: 408581 $ $Date: 2006-05-21 23:34:24 -0700 (Sun, 21 May 2006) $
Constructor Summary |
FieldInjector(Field field,
ObjectFactory<?> objectFactory)
Create an injector and have it use the given ObjectFactory
to inject a value on the instance using the reflected Field |
Method Summary |
void |
inject(T instance)
Inject a new value on the given isntance |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FieldInjector
public FieldInjector(Field field,
ObjectFactory<?> objectFactory)
- Create an injector and have it use the given
ObjectFactory
to inject a value on the instance using the reflected Field
inject
public void inject(T instance)
throws ObjectCreationException
- Inject a new value on the given isntance
- Specified by:
inject
in interface Injector<T>
- Throws:
ObjectCreationException
-