Package org.picocontainer.behaviors
Class Automated<T>
java.lang.Object
org.picocontainer.behaviors.AbstractBehavior<T>
org.picocontainer.behaviors.Automated<T>
- All Implemented Interfaces:
Serializable,Behavior<T>,ComponentAdapter<T>,ComponentLifecycle<T>,ComponentMonitorStrategy,LifecycleStrategy
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.picocontainer.ComponentAdapter
ComponentAdapter.NOTHING -
Field Summary
Fields inherited from class org.picocontainer.behaviors.AbstractBehavior
delegate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet a string key descriptor of the component adapter for use in toString()booleanhasLifecycle(Class<?> type) Invokes delegate hasLifecycle(Class) method if the delegate is a LifecycleStrategy Invokes delegate hasLifecycle(Class) method if the delegate is a LifecycleStrategy Test if a component instance has a lifecycle.Methods inherited from class org.picocontainer.behaviors.AbstractBehavior
accept, changeMonitor, componentHasLifecycle, currentMonitor, dispose, dispose, findAdapterOfType, getComponentImplementation, getComponentInstance, getComponentInstance, getComponentKey, getDelegate, isLazy, isStarted, start, start, stop, stop, toString, verifyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.picocontainer.ComponentAdapter
accept, findAdapterOfType, getComponentImplementation, getComponentInstance, getComponentInstance, getComponentKey, getDelegate, verifyMethods inherited from interface org.picocontainer.ComponentLifecycle
componentHasLifecycle, dispose, isStarted, start, stop
-
Constructor Details
-
Automated
-
-
Method Details
-
hasLifecycle
Description copied from class:AbstractBehaviorInvokes delegate hasLifecycle(Class) method if the delegate is a LifecycleStrategy Test if a component instance has a lifecycle.- Specified by:
hasLifecyclein interfaceLifecycleStrategy- Overrides:
hasLifecyclein classAbstractBehavior<T>- Parameters:
type- the component's type- Returns:
trueif the component has a lifecycle
-
getDescriptor
Description copied from interface:ComponentAdapterGet a string key descriptor of the component adapter for use in toString()- Specified by:
getDescriptorin interfaceComponentAdapter<T>- Returns:
- the descriptor
-