org.picocontainer.injectors
Class NamedMethodInjector<T>

java.lang.Object
  extended by org.picocontainer.adapters.AbstractAdapter<T>
      extended by org.picocontainer.injectors.AbstractInjector<T>
          extended by org.picocontainer.injectors.IterativeInjector<T>
              extended by org.picocontainer.injectors.SetterInjector<T>
                  extended by org.picocontainer.injectors.NamedMethodInjector<T>
All Implemented Interfaces:
Serializable, ComponentAdapter<T>, ComponentMonitorStrategy, Injector<T>

public class NamedMethodInjector<T>
extends SetterInjector<T>

See Also:
Serialized Form

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.SetterInjector
prefix
 
Fields inherited from class org.picocontainer.injectors.IterativeInjector
bindings, injectionMembers, injectionTypes
 
Fields inherited from class org.picocontainer.injectors.AbstractInjector
parameters, verifyingGuard
 
Constructor Summary
NamedMethodInjector(Object key, Class<?> impl, Parameter[] parameters, ComponentMonitor monitor)
           
NamedMethodInjector(Object key, Class<?> impl, Parameter[] parameters, ComponentMonitor monitor, boolean optional)
           
NamedMethodInjector(Object key, Class<?> impl, Parameter[] parameters, ComponentMonitor monitor, String prefix)
           
NamedMethodInjector(Object key, Class<?> impl, Parameter[] parameters, ComponentMonitor monitor, String prefix, boolean optional)
           
 
Method Summary
 String getDescriptor()
          Get a string key descriptor of the component adapter for use in toString()
protected  NameBinding makeParameterNameImpl(AccessibleObject member)
           
protected  void unsatisfiedDependencies(PicoContainer container, Set<Type> unsatisfiableDependencyTypes)
           
 
Methods inherited from class org.picocontainer.injectors.SetterInjector
getInjectorPrefix, injectIntoMember, isInjectorMethod, memberInvocationReturn
 
Methods inherited from class org.picocontainer.injectors.IterativeInjector
decorateComponentInstance, getComponentInstance, getConstructor, getName, initializeInjectionMembersAndTypeLists, verify
 
Methods inherited from class org.picocontainer.injectors.AbstractInjector
accept, box, caughtIllegalAccessException, caughtIllegalAccessException, caughtInstantiationException, caughtInvocationTargetException, createDefaultParameters, getComponentInstance, newInstance, 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

NamedMethodInjector

public NamedMethodInjector(Object key,
                           Class<?> impl,
                           Parameter[] parameters,
                           ComponentMonitor monitor,
                           boolean optional)

NamedMethodInjector

public NamedMethodInjector(Object key,
                           Class<?> impl,
                           Parameter[] parameters,
                           ComponentMonitor monitor)

NamedMethodInjector

public NamedMethodInjector(Object key,
                           Class<?> impl,
                           Parameter[] parameters,
                           ComponentMonitor monitor,
                           String prefix)

NamedMethodInjector

public NamedMethodInjector(Object key,
                           Class<?> impl,
                           Parameter[] parameters,
                           ComponentMonitor monitor,
                           String prefix,
                           boolean optional)
Method Detail

makeParameterNameImpl

protected NameBinding makeParameterNameImpl(AccessibleObject member)
Overrides:
makeParameterNameImpl in class IterativeInjector<T>

unsatisfiedDependencies

protected void unsatisfiedDependencies(PicoContainer container,
                                       Set<Type> unsatisfiableDependencyTypes)
Overrides:
unsatisfiedDependencies in class IterativeInjector<T>

getDescriptor

public String getDescriptor()
Description copied from interface: ComponentAdapter
Get a string key descriptor of the component adapter for use in toString()

Specified by:
getDescriptor in interface ComponentAdapter<T>
Overrides:
getDescriptor in class SetterInjector<T>
Returns:
the descriptor


Copyright © 2003-2010 Codehaus. All Rights Reserved.