- All Known Subinterfaces:
ComponentComposite
,ComponentComposite.ExtendedComponentComposite<CTX,
,CON> Initializable.InitializeAutomaton
,Initializable.UncheckedInitializable
,InitializableComponent
,LifecycleComponent
,LifecycleComponent.LifecycleAutomaton
,LifecycleComponent.UncheckedLifecycleComponent
- All Known Implementing Classes:
AbstractComponentComposite
,AbstractComponentComposite.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 the Configurable
interface with its
Configurable.initialize(Object)
method, which provides an argument
specifying the context to be passed to the Component
.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
TheInitializable.InitializeAutomaton
interface defines those methods related to the initialize life-cycle.static interface
To enable theInitializable
functionality to be invoked in a builder chain.static interface
SeeInitializable
without any checked exception being declared. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Initialize the component.default void
Initialize the component by callinginitialize()
without you to require catching anInitializeException
.
-
Method Details
-
initialize
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
-