public abstract class AbstractInitializableComponent extends Object implements DestructableComponent, InitializableComponent
DestructableComponent
and InitializableComponent
.Modifier and Type | Field and Description |
---|---|
private boolean |
isDestroyed
Whether this component has been destroyed.
|
private boolean |
isInitialized
Whether this component has been initialized.
|
Constructor and Description |
---|
AbstractInitializableComponent() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroys the component.
|
protected void |
doDestroy()
Performs component specific destruction logic.
|
protected void |
doInitialize()
Performs the initialization of the component.
|
void |
initialize()
Initializes the component.
|
boolean |
isDestroyed()
Gets whether this component has been destroyed.
|
boolean |
isInitialized()
Gets whether this component is initialized.
|
private boolean isDestroyed
private boolean isInitialized
public final boolean isDestroyed()
isDestroyed
in interface DestructableComponent
public boolean isInitialized()
isInitialized
in interface InitializableComponent
public final void destroy()
destroy
in interface DestructableComponent
public final void initialize() throws ComponentInitializationException
initialize
in interface InitializableComponent
ComponentInitializationException
- thrown if there is a problem initializing the componentprotected void doDestroy()
protected void doInitialize() throws ComponentInitializationException
ComponentInitializationException
- thrown if there is a problem initializing the componentCopyright © 1999–2016. All rights reserved.