|
Tuscany Core | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tuscany.core.injection.FieldInjector<T>
public class FieldInjector<T>
Injects a value created by an ObjectFactory
on a given field
Constructor Summary | |
---|---|
FieldInjector(java.lang.reflect.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 |
Constructor Detail |
---|
public FieldInjector(java.lang.reflect.Field field, ObjectFactory<?> objectFactory)
ObjectFactory
to inject a value on the instance using the reflected Field
Method Detail |
---|
public void inject(T instance) throws ObjectCreationException
inject
in interface Injector<T>
ObjectCreationException
|
Tuscany Core | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |