public static class FactoryInjectorTestCase.BrendansLoggerInjector extends FactoryInjector<FactoryInjectorTestCase.BrendansLogger>
FactoryInjector.CantWorkItOutComponentAdapter.NOTHING| Constructor and Description |
|---|
BrendansLoggerInjector() |
| Modifier and Type | Method and Description |
|---|---|
FactoryInjectorTestCase.BrendansLogger |
getComponentInstance(PicoContainer arg0,
Type arg1)
Retrieve the component instance.
|
accept, componentHasLifecycle, decorateComponentInstance, dispose, findAdapterOfType, getClass, getComponentImplementation, getComponentInstance, getComponentKey, getDelegate, getDescriptor, getTypeArguments, start, stop, verifypublic BrendansLoggerInjector()
public FactoryInjectorTestCase.BrendansLogger getComponentInstance(PicoContainer arg0, Type arg1) throws PicoCompositionException
ComponentAdapterCached will always return the
same instance.getComponentInstance in interface ComponentAdapter<FactoryInjectorTestCase.BrendansLogger>getComponentInstance in class FactoryInjector<FactoryInjectorTestCase.BrendansLogger>arg0 - the PicoContainer, that is used to resolve any possible dependencies of the instance.arg1 - 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.Copyright © 2003–2016 Codehaus. All rights reserved.