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 InitializableThis 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 theConfigurableinterface 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 interfaceInitializable.InitializeAutomatonTheInitializable.InitializeAutomatoninterface defines those methods related to the initialize life-cycle.static interfaceInitializable.InitializeBuilder<B extends Initializable.InitializeBuilder<B>>To enable theInitializablefunctionality to be invoked in a builder chain.static interfaceInitializable.UncheckedInitializableSeeInitializablewithout any checked exception being declared.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidinitialize()Initialize the component.default voidinitializeUnchecked()Initialize the component by callinginitialize()without you to require catching anInitializeException.
-
-
-
Method Detail
-
initialize
void initialize() throws InitializeExceptionInitialize 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 aInitializeExceptionexception
-
-