public abstract class AbstractIdentifiedInitializableComponent extends AbstractInitializableComponent implements IdentifiedComponent
InitializableComponent
and IdentifiedComponent
.
Note, this class synchronizes the setId(String)
method and, if the component is already initialized this
method is treated as no-op.Constructor and Description |
---|
AbstractIdentifiedInitializableComponent() |
Modifier and Type | Method and Description |
---|---|
protected void |
doInitialize()
This method checks to ensure that the component ID is not null.
|
String |
getId()
Get the ID of this component.
|
protected void |
setId(String componentId)
Sets the ID of this component.
|
destroy, doDestroy, initialize, isDestroyed, isInitialized
public AbstractIdentifiedInitializableComponent()
@Nullable @NonnullAfterInit public String getId()
getId
in interface IdentifiedComponent
protected void setId(@Nonnull @NotEmpty String componentId)
componentId
- ID of the componentprotected void doInitialize() throws ComponentInitializationException
doInitialize
in class AbstractInitializableComponent
ComponentInitializationException
- thrown if there is a problem initializing the componentCopyright © 2016 JBoss by Red Hat. All rights reserved.