- 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,LifecycleMachine,LifecycleMachine.ManualLifecycleMachine
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
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceTheInitializable.InitializeAutomatoninterface defines those methods related to the initialize life-cycle.static interfaceTo enable theInitializablefunctionality to be invoked in a builder chain.static interfaceSeeInitializablewithout any checked exception being declared. -
Method Summary
Modifier and TypeMethodDescriptionvoidInitialize the component.default voidInitialize 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 aCause and is thrown upon encountering aInitializeExceptionexception
-