public class TypedFieldInjector<T> extends AbstractFieldInjector<T>
AbstractInjector.AmbiguousComponentResolutionException, AbstractInjector.CyclicDependencyException, AbstractInjector.NotConcreteRegistrationException, AbstractInjector.UnsatisfiableDependenciesException
ComponentAdapter.NOTHING
bindings, injectionMembers, injectionTypes
parameters, verifyingGuard
Constructor and Description |
---|
TypedFieldInjector(Object key,
Class<?> impl,
Parameter[] parameters,
ComponentMonitor componentMonitor,
String classNames) |
Modifier and Type | Method and Description |
---|---|
String |
getDescriptor()
Get a string key descriptor of the component adapter for use in toString()
|
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) |
unsatisfiedDependencies
crudeMethodSignature, decorateComponentInstance, getComponentInstance, getConstructor, getName, isInjectorMethod, verify
accept, box, caughtIllegalAccessException, caughtIllegalAccessException, caughtInstantiationException, caughtInvocationTargetException, createDefaultParameters, getComponentInstance, newInstance, useNames
changeMonitor, checkTypeCompatibility, currentMonitor, findAdapterOfType, getComponentImplementation, getComponentKey, getDelegate, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findAdapterOfType, getComponentImplementation, getComponentKey, getDelegate
public TypedFieldInjector(Object key, Class<?> impl, Parameter[] parameters, ComponentMonitor componentMonitor, String classNames)
protected void initializeInjectionMembersAndTypeLists()
initializeInjectionMembersAndTypeLists
in class IterativeInjector<T>
protected boolean isTypedForInjection(Field field)
protected Object injectIntoMember(AccessibleObject member, Object componentInstance, Object toInject) throws IllegalAccessException, InvocationTargetException
injectIntoMember
in class IterativeInjector<T>
IllegalAccessException
InvocationTargetException
public String getDescriptor()
ComponentAdapter
getDescriptor
in interface ComponentAdapter<T>
getDescriptor
in class AbstractInjector<T>
protected NameBinding makeParameterNameImpl(AccessibleObject member)
makeParameterNameImpl
in class IterativeInjector<T>
protected Object memberInvocationReturn(Object lastReturn, AccessibleObject member, Object instance)
memberInvocationReturn
in class IterativeInjector<T>
Copyright © 2003–2015 Codehaus. All rights reserved.