public static class AbstractComponentAdapterTest.CycleDetectorBehavior extends AbstractBehavior
ComponentAdapter.NOTHING
delegate
Constructor and Description |
---|
CycleDetectorBehavior(ComponentAdapter delegate,
Set set,
ObjectReference reference) |
Modifier and Type | Method and Description |
---|---|
Object |
getComponentInstance(PicoContainer container,
Type into)
Retrieve the component instance.
|
String |
getDescriptor()
Get a string key descriptor of the component adapter for use in toString()
|
accept, changeMonitor, componentHasLifecycle, currentMonitor, dispose, dispose, findAdapterOfType, getComponentImplementation, getComponentInstance, getComponentKey, getDelegate, hasLifecycle, isLazy, isStarted, start, start, stop, stop, toString, verify
public CycleDetectorBehavior(ComponentAdapter delegate, Set set, ObjectReference reference)
public Object getComponentInstance(PicoContainer container, Type into)
ComponentAdapter
Cached
will always return the
same instance.getComponentInstance
in interface ComponentAdapter
getComponentInstance
in class AbstractBehavior
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.public String getDescriptor()
ComponentAdapter
Copyright © 2003–2015 Codehaus. All rights reserved.