Uses of Interface
org.refcodes.component.LifecycleComponent
-
Uses of LifecycleComponent in org.refcodes.component
Subinterfaces of LifecycleComponent in org.refcodes.componentModifier and TypeInterfaceDescriptioninterfaceAny composite implementation of the refcodes frameworks should implement thisComponentCompositeinterface so that any therein containedComponentinstances' state change methods are supported by theComponentCompositeas well and forwarded to theComponentcontained in theComponentCompositeinstance.static interfaceTheComponentComposite.ExtendedComponentCompositeprovides extended functionality to theComponentComposite's functionality by including extendedOpenablefunctionality (ConnectionOpenable) and extendsInitializablefunctionality (Configurable).static interfaceA system implementing theLifecycleComponent.LifecycleAutomatoninterface supports managingLifecycleComponentinstances and takes care that the life-cycle stages are invoked in the correct order by throwing according exceptions in case the life-cycle is invoked in the wrong order.static interfaceSame as theLifecycleComponentthough without the need to try-catch any exceptions on the various life-cycle stages.Classes in org.refcodes.component that implement LifecycleComponentModifier and TypeClassDescriptionclassAbstractComponentComposite<C extends Component>TheAbstractComponentCompositeis an implementation of theComponentComposite.static classAbstractComponentComposite.ExtendedCompositeComponentImpl<C extends Component,CTX, CON> TheAbstractComponentComposite.ExtendedCompositeComponentImplis an implementation of theComponentComposite.ExtendedComponentComposite.classTheLifecycleMachineimplements aLifecycleComponent.LifecycleAutomaton.static classOpens the otherwise protectedLifecycleMachine.ManualLifecycleMachine.setLifecycleStatus(LifecycleStatus)to be public in order to force any lifecycle status to be set.Methods in org.refcodes.component that return LifecycleComponentModifier and TypeMethodDescriptionprotected LifecycleComponentLifecycleMachine.getLifecycleComponent()Provides access to theLifecycleComponentinstance.Constructors in org.refcodes.component with parameters of type LifecycleComponentModifierConstructorDescriptionLifecycleMachine(LifecycleComponent aLifecycleComponent) This constructor uses aLifecycleStatusfor wrapping it inside theLifecycleComponent.LifecycleAutomaton, making sure of obeying and guarding the correctLifecycleStatus's order ofLifecycleStatusstates for you.ManualLifecycleMachine(LifecycleComponent aLifecycleComponent) This constructor uses aLifecycleMachine.ManualLifecycleMachinefor wrapping it inside theLifecycleComponent.LifecycleAutomaton, making sure of obeying and guarding the correctLifecycleStatus's order ofLifecycleStatusstates for you.