|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LifecycleStrategy
An interface which specifies the lifecycle strategy on the component instance. Lifecycle strategies are used by component adapters to delegate the lifecycle operations on the component instances.
Startable
,
Disposable
Method Summary | |
---|---|
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. |
Method Detail |
---|
void start(Object component)
component
- the instance of the component to startvoid stop(Object component)
component
- the instance of the component to stopvoid dispose(Object component)
component
- the instance of the component to disposeboolean hasLifecycle(Class<?> type)
type
- the component's type
true
if the component has a lifecycleboolean isLazy(ComponentAdapter<?> adapter)
adapter
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |