public class CompositeLifecycleStrategy extends Object implements LifecycleStrategy
| Constructor and Description |
|---|
CompositeLifecycleStrategy(LifecycleStrategy... alternateStrategies) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose(Object component)
Invoke the "dispose" method on the component instance if this is disposable.
|
boolean |
hasLifecycle(Class<?> type)
Test if a component instance has a lifecycle.
|
boolean |
isLazy(ComponentAdapter<?> adapter)
Is a component eager (not lazy) in that it should start when start() or equivalent is called,
or lazy (it will only start on first getComponent() ).
|
void |
start(Object component)
Invoke the "start" method on the component instance if this is startable.
|
void |
stop(Object component)
Invoke the "stop" method on the component instance if this is stoppable.
|
public CompositeLifecycleStrategy(LifecycleStrategy... alternateStrategies)
public void start(Object component)
LifecycleStrategystart in interface LifecycleStrategycomponent - the instance of the component to startpublic void stop(Object component)
LifecycleStrategystop in interface LifecycleStrategycomponent - the instance of the component to stoppublic void dispose(Object component)
LifecycleStrategydispose in interface LifecycleStrategycomponent - the instance of the component to disposepublic boolean hasLifecycle(Class<?> type)
LifecycleStrategyhasLifecycle in interface LifecycleStrategytype - the component's typetrue if the component has a lifecyclepublic boolean isLazy(ComponentAdapter<?> adapter)
LifecycleStrategyisLazy in interface LifecycleStrategyCopyright © 2003-2014 Codehaus. All Rights Reserved.