public class NullCA extends Object implements ComponentAdapter
ComponentAdapter.NOTHING| Modifier and Type | Method and Description |
|---|---|
void |
accept(PicoVisitor visitor)
Accepts a visitor for this ComponentAdapter.
|
ComponentAdapter |
findAdapterOfType(Class adapterType)
Locates a component adapter of type componentAdapterType in the ComponentAdapter chain.
|
Class |
getComponentImplementation()
Retrieve the class of the component.
|
Object |
getComponentInstance(PicoContainer container)
Retrieve the component instance.
|
Object |
getComponentInstance(PicoContainer container,
Type into)
Retrieve the component instance.
|
Object |
getComponentKey()
Retrieve the key associated with the component.
|
ComponentAdapter |
getDelegate()
Component adapters may be nested in a chain, and this method is used to grab the next ComponentAdapter in the chain.
|
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.
|
public Object getComponentKey()
ComponentAdaptergetComponentKey in interface ComponentAdapterpublic Class getComponentImplementation()
ComponentAdaptergetComponentImplementation in interface ComponentAdapterpublic Object getComponentInstance(PicoContainer container)
ComponentAdapterCached will always return the
same instance.getComponentInstance in interface ComponentAdaptercontainer - the PicoContainer, that is used to resolve any possible dependencies of the instance.public Object getComponentInstance(PicoContainer container, Type into)
ComponentAdapterCached will always return the
same instance.getComponentInstance in interface ComponentAdaptercontainer - 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.public void verify(PicoContainer container)
ComponentAdapterverify in interface ComponentAdaptercontainer - the PicoContainer, that is used to resolve any possible dependencies of the instance.public void accept(PicoVisitor visitor)
ComponentAdapterPicoContainer, that
cascades the visitor also down to all its ComponentAdapter instances.accept in interface ComponentAdaptervisitor - the visitor.public ComponentAdapter getDelegate()
ComponentAdaptergetDelegate in interface ComponentAdapterpublic ComponentAdapter findAdapterOfType(Class adapterType)
ComponentAdapterfindAdapterOfType in interface ComponentAdapteradapterType - the class of the adapter type being located. Never null.public String getDescriptor()
ComponentAdaptergetDescriptor in interface ComponentAdapterCopyright © 2003–2016 Codehaus. All rights reserved.