Package org.refcodes.component
Interface Initializable
-
- All Known Subinterfaces:
CompositeComponent
,CompositeComponent.ExtendedCompositeComponent<CTX,CON>
,Initializable.InitializeAutomaton
,Initializable.UncheckedInitializable
,InitializableComponent
,LifeCycleComponent
,LifeCycleComponent.LifeCycleAutomaton
,LifeCycleComponent.UncheckedLifeCycleComponent
- All Known Implementing Classes:
CompositeComponentImpl
,CompositeComponentImpl.ExtendedCompositeComponentImpl
,LifeCycleAutomatonImpl
,LifeCycleAutomatonImpl.ManualLifeCycleAutomatonImpl
public interface Initializable
This mixin might be implemented by a component in order to provide initializing facilities.In case a context is to be provided to the
initialize()
method, you may use theConfigurable
interface with itsConfigurable.initialize(Object)
method, which provides an argument specifying the context to be passed to theComponent
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
Initializable.InitializeAutomaton
TheInitializable.InitializeAutomaton
interface defines those methods related to the initialize life-cycle.static interface
Initializable.InitializeBuilder<B extends Initializable.InitializeBuilder<B>>
To enable theInitializable
functionality to be invoked in a builder chain.static interface
Initializable.UncheckedInitializable
SeeInitializable
without any checked exception being declared.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
initialize()
Initialize the component.default void
initializeUnchecked()
Initialize the component by callinginitialize()
without you to require catching anInitializeException
.
-
-
-
Method Detail
-
initialize
void initialize() throws InitializeException
Initialize the component.- Throws:
InitializeException
- Thrown in case initializing fails.
-
initializeUnchecked
default void initializeUnchecked()
Initialize the component by callinginitialize()
without you to require catching anInitializeException
.- Throws:
InitializeException.InitializeRuntimeException
- encapsulates the cause and is thrown upon encountering aInitializeException
exception
-
-