public interface Initializable
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
.
Modifier and Type | Interface and Description |
---|---|
static interface |
Initializable.InitializeAutomaton
The
Initializable.InitializeAutomaton interface defines those methods related
to the initialize life-cycle. |
static interface |
Initializable.InitializeBuilder<B extends Initializable.InitializeBuilder<B>>
To enable the
Initializable functionality to be invoked in a
builder chain. |
static interface |
Initializable.UncheckedInitializable
See
Initializable without any checked exception being declared. |
Modifier and Type | Method and Description |
---|---|
void |
initialize()
Initialize the component.
|
default void |
initializeUnchecked()
Initialize the component by calling
initialize() without you to
require catching an InitializeException . |
void initialize() throws InitializeException
InitializeException
- Thrown in case initializing fails.default void initializeUnchecked()
initialize()
without you to
require catching an InitializeException
.InitializeException.InitializeRuntimeException
- encapsulates the cause and is thrown
upon encountering a InitializeException
exceptionCopyright © 2018. All rights reserved.