public static final class UserQuestionTestCase.CheeseAdapter<T extends UserQuestionTestCase.Cheese> extends AbstractAdapter<T>
ComponentAdapter.NOTHING
Constructor and Description |
---|
CheeseAdapter(Object componentKey,
Class<T> componentImplementation,
Map<String,?> cheeseMap) |
Modifier and Type | Method and Description |
---|---|
T |
getComponentInstance(PicoContainer pico,
Type into)
Retrieve the component instance.
|
String |
getDescriptor()
Get a string key descriptor of the component adapter for use in toString()
|
void |
verify(PicoContainer pico)
Verify that all dependencies for this adapter can be satisfied.
|
accept, changeMonitor, checkTypeCompatibility, currentMonitor, findAdapterOfType, getComponentImplementation, getComponentInstance, getComponentKey, getDelegate, toString
public CheeseAdapter(Object componentKey, Class<T> componentImplementation, Map<String,?> cheeseMap) throws PicoCompositionException
PicoCompositionException
public T getComponentInstance(PicoContainer pico, Type into) throws PicoCompositionException
ComponentAdapter
Cached
will always return the
same instance.pico
- 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 void verify(PicoContainer pico)
ComponentAdapter
pico
- the PicoContainer
, that is used to resolve any possible dependencies of the instance.public String getDescriptor()
ComponentAdapter
Copyright © 2003–2016 Codehaus. All rights reserved.