public static class SimpleNamedBindingAnnotationTestCase.FieldInjector<T> extends AbstractInjector<T>
AbstractInjector.AmbiguousComponentResolutionException, AbstractInjector.CyclicDependencyException, AbstractInjector.NotConcreteRegistrationException, AbstractInjector.UnsatisfiableDependenciesExceptionComponentAdapter.NOTHINGparameters, verifyingGuard| Modifier | Constructor and Description |
|---|---|
protected |
FieldInjector(Object componentKey,
Class componentImplementation,
Parameter[] parameters,
ComponentMonitor monitor,
boolean useNames) |
| Modifier and Type | Method and Description |
|---|---|
T |
getComponentInstance(PicoContainer container,
Type into)
Retrieve the component instance.
|
String |
getDescriptor()
Get a string key descriptor of the component adapter for use in toString()
|
void |
verify(PicoContainer container)
Verify that all dependencies for this adapter can be satisfied.
|
accept, box, caughtIllegalAccessException, caughtIllegalAccessException, caughtInstantiationException, caughtInvocationTargetException, createDefaultParameters, decorateComponentInstance, getComponentInstance, newInstance, useNameschangeMonitor, checkTypeCompatibility, currentMonitor, findAdapterOfType, getComponentImplementation, getComponentKey, getDelegate, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindAdapterOfType, getComponentImplementation, getComponentKey, getDelegateprotected FieldInjector(Object componentKey, Class componentImplementation, Parameter[] parameters, ComponentMonitor monitor, boolean useNames)
public void verify(PicoContainer container) throws PicoCompositionException
ComponentAdapterverify in interface ComponentAdapter<T>verify in class AbstractInjector<T>container - the PicoContainer, that is used to resolve any possible dependencies of the instance.PicoCompositionException - if one or more dependencies cannot be resolved.public T getComponentInstance(PicoContainer container, Type into) throws PicoCompositionException
ComponentAdapterCached will always return the
same instance.getComponentInstance in interface ComponentAdapter<T>getComponentInstance in class AbstractInjector<T>container - the PicoContainer, that is used to resolve any possible dependencies of the instance.into - the class that is about to be injected into. Use ComponentAdapter.NOTHING.class if this is not important to you.PicoCompositionException - if the component has dependencies which could not be resolved, or
instantiation of the component lead to an ambiguous situation within the
container.public String getDescriptor()
ComponentAdaptergetDescriptor in interface ComponentAdapter<T>getDescriptor in class AbstractInjector<T>Copyright © 2003–2019 Codehaus. All rights reserved.