public abstract class AbstractIdentifiableInitializableComponent extends AbstractInitializableComponent implements IdentifiableComponent
InitializableComponent and IdentifiableComponent.
Note, this class synchronizes the setId(String) method and, if the component is already initialized this
method is treated as no-op.| Modifier and Type | Field and Description |
|---|---|
private String |
id
The unique identifier for this component.
|
| Constructor and Description |
|---|
AbstractIdentifiableInitializableComponent() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInitialize()
This method checks to ensure that the component ID is not null.
|
String |
getId()
Gets the ID of this component.
|
protected void |
setId(String componentId)
Sets the ID of this component.
|
initialize, isInitialized@Nullable @NonnullAfterInit private String id
public AbstractIdentifiableInitializableComponent()
@Nullable @NonnullAfterInit public String getId()
getId in interface IdentifiableComponentprotected void setId(@Nonnull@NotEmpty String componentId)
componentId - ID of the componentprotected void doInitialize()
throws ComponentInitializationException
doInitialize in class AbstractInitializableComponentComponentInitializationException - thrown if there is a problem initializing the componentCopyright © 1999-2013. All Rights Reserved.