|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.picocontainer.adapters.AbstractAdapter<T>
org.picocontainer.injectors.AbstractInjector<T>
org.picocontainer.injectors.IterativeInjector
org.picocontainer.injectors.TypedFieldInjector
public class TypedFieldInjector
Injection happens after instantiation, and fields are marked as injection points via a field type.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.picocontainer.injectors.AbstractInjector |
|---|
AbstractInjector.AmbiguousComponentResolutionException, AbstractInjector.CyclicDependencyException, AbstractInjector.NotConcreteRegistrationException, AbstractInjector.UnsatisfiableDependenciesException |
| Nested classes/interfaces inherited from interface org.picocontainer.ComponentAdapter |
|---|
ComponentAdapter.NOTHING |
| Field Summary |
|---|
| Fields inherited from class org.picocontainer.injectors.IterativeInjector |
|---|
bindings, injectionMembers, injectionTypes |
| Fields inherited from class org.picocontainer.injectors.AbstractInjector |
|---|
lifecycleStrategy, parameters, verifyingGuard |
| Constructor Summary | |
|---|---|
TypedFieldInjector(Object key,
Class<?> impl,
Parameter[] parameters,
ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
String classNames)
|
|
| Method Summary | |
|---|---|
String |
getDescriptor()
Get a string key descriptor of the component adapter. |
protected void |
initializeInjectionMembersAndTypeLists()
|
protected Object |
injectIntoMember(AccessibleObject member,
Object componentInstance,
Object toInject)
|
protected boolean |
isTypedForInjection(Field field)
|
protected NameBinding |
makeParameterNameImpl(AccessibleObject member)
|
protected Object |
memberInvocationReturn(Object lastReturn,
AccessibleObject member,
Object instance)
|
| Methods inherited from class org.picocontainer.injectors.IterativeInjector |
|---|
decorateComponentInstance, getComponentInstance, getConstructor, isInjectorMethod, unsatisfiedDependencies, verify |
| Methods inherited from class org.picocontainer.injectors.AbstractInjector |
|---|
accept, box, caughtIllegalAccessException, caughtIllegalAccessException, caughtInstantiationException, caughtInvocationTargetException, createDefaultParameters, dispose, getComponentInstance, hasLifecycle, newInstance, start, stop, useNames |
| Methods inherited from class org.picocontainer.adapters.AbstractAdapter |
|---|
changeMonitor, checkTypeCompatibility, currentMonitor, findAdapterOfType, getComponentImplementation, getComponentKey, getDelegate, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.picocontainer.ComponentAdapter |
|---|
findAdapterOfType, getComponentImplementation, getComponentKey, getDelegate |
| Constructor Detail |
|---|
public TypedFieldInjector(Object key,
Class<?> impl,
Parameter[] parameters,
ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
String classNames)
| Method Detail |
|---|
protected void initializeInjectionMembersAndTypeLists()
initializeInjectionMembersAndTypeLists in class IterativeInjectorprotected boolean isTypedForInjection(Field field)
protected Object injectIntoMember(AccessibleObject member,
Object componentInstance,
Object toInject)
throws IllegalAccessException,
InvocationTargetException
injectIntoMember in class IterativeInjectorIllegalAccessException
InvocationTargetExceptionpublic String getDescriptor()
ComponentAdapter
getDescriptor in interface ComponentAdaptergetDescriptor in class AbstractInjectorprotected NameBinding makeParameterNameImpl(AccessibleObject member)
makeParameterNameImpl in class IterativeInjector
protected Object memberInvocationReturn(Object lastReturn,
AccessibleObject member,
Object instance)
memberInvocationReturn in class IterativeInjector
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||