Package org.refcodes.component
Interface LifeCycleStatusHandle<H>
-
- Type Parameters:
H- the generic type
- All Known Subinterfaces:
CompositeComponentHandle<H,REF>,ConfigurableLifeCycleComponentHandle.ConfigurableLifeCycleAutomatonHandle<H,CTX>,LifeCycleComponentHandle.LifeCycleAutomatonHandle<H>
public interface LifeCycleStatusHandle<H>The Interface LifeCycleStatusHandle.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LifeCycleStatusgetLifeCycleStatus(H aHandle)Retrieves theLifeCycleStatusrelated to the given handle.booleanhasLifeCycleStatus(H aHandle)Determines whether the handle reference provides aLifeCycleStatusby implementing theLifeCycleStatusAccessorinterface.
-
-
-
Method Detail
-
hasLifeCycleStatus
boolean hasLifeCycleStatus(H aHandle) throws UnknownHandleRuntimeException
Determines whether the handle reference provides aLifeCycleStatusby implementing theLifeCycleStatusAccessorinterface.- Parameters:
aHandle- The handle to test whether the reference provides the according functionality.- Returns:
- True in case the reference provides the according functionality.
- Throws:
UnknownHandleRuntimeException- in case the handle is unknown.
-
getLifeCycleStatus
LifeCycleStatus getLifeCycleStatus(H aHandle) throws UnknownHandleRuntimeException, UnsupportedHandleOperationRuntimeException
Retrieves theLifeCycleStatusrelated to the given handle. Determines in whichLifeCycleStatusstatus a component related to the given handle is in.- Parameters:
aHandle- The handle for which to retrieve theLifeCycleStatus.- Returns:
- Returns the
LifeCycleStatusrelated to the given handle. - Throws:
UnknownHandleRuntimeException- in case the given handle is unknown.UnsupportedHandleOperationRuntimeException- in case the reference of the handle does not support the requested operation.
-
-