org.picocontainer
Interface Behavior<T>

All Superinterfaces:
ComponentAdapter<T>
All Known Subinterfaces:
BehaviorAdapterTestCase.ComponentAdapterThatCanManageLifecycle
All Known Implementing Classes:
AbstractBehavior, AbstractComponentAdapterTest.CollectingBehavior, AbstractComponentAdapterTest.CycleDetectorBehavior, AbstractComponentAdapterTest.NotInstantiatableBehavior, AbstractPicoContainerTest.TestBehavior, AsmHiddenImplementation, Assimilated, Automated, Cached, Decorated, FieldDecorated, HiddenImplementation, HiddenImplementation, HotSwappable, InstanceAdapter, Intercepted, JMXExposed, JNDIExposed, Locked, Pooled, PropertyApplicator, Stored, Synchronized, ThreadCached, ThreadLocalized

public interface Behavior<T>
extends ComponentAdapter<T>

Behaviors modify the components created by a Injector with additional behaviors

Author:
Paul Hammant, Jörg Schaible, Mauro Talevi
See Also:
LifecycleStrategy

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.picocontainer.ComponentAdapter
ComponentAdapter.NOTHING
 
Method Summary
 boolean componentHasLifecycle()
          Test if a component honors a lifecycle.
 void dispose(PicoContainer container)
          Invoke the "dispose" method on the component.
 void start(PicoContainer container)
          Invoke the "start" method on the component.
 void stop(PicoContainer container)
          Invoke the "stop" method on the component.
 
Methods inherited from interface org.picocontainer.ComponentAdapter
accept, findAdapterOfType, getComponentImplementation, getComponentInstance, getComponentInstance, getComponentKey, getDelegate, getDescriptor, verify
 

Method Detail

start

void start(PicoContainer container)
Invoke the "start" method on the component.

Parameters:
container - the container to "start" the component

stop

void stop(PicoContainer container)
Invoke the "stop" method on the component.

Parameters:
container - the container to "stop" the component

dispose

void dispose(PicoContainer container)
Invoke the "dispose" method on the component.

Parameters:
container - the container to "dispose" the component

componentHasLifecycle

boolean componentHasLifecycle()
Test if a component honors a lifecycle.

Returns:
true if the component has a lifecycle


Copyright © 2003-2010 Codehaus. All Rights Reserved.