Class AbstractIdentifiedInitializableComponent
java.lang.Object
net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
- All Implemented Interfaces:
Component
,DestructableComponent
,IdentifiedComponent
,InitializableComponent
- Direct Known Subclasses:
AbstractIdentifiableInitializableComponent
@ThreadSafe
public abstract class AbstractIdentifiedInitializableComponent
extends AbstractInitializableComponent
implements IdentifiedComponent
Simple implementation of
InitializableComponent
and IdentifiedComponent
.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
This method checks to ensure that the component ID is not null.getId()
Get the ID of this component.protected void
Sets the ID of this component.Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, initialize, isDestroyed, isInitialized
-
Field Details
-
id
The unique identifier for this component.
-
-
Constructor Details
-
AbstractIdentifiedInitializableComponent
public AbstractIdentifiedInitializableComponent()
-
-
Method Details
-
getId
Get the ID of this component.- Specified by:
getId
in interfaceIdentifiedComponent
- Returns:
- ID of this component or null
-
setId
Sets the ID of this component. The component must not yet be initialized.- Parameters:
componentId
- ID of the component
-
doInitialize
This method checks to ensure that the component ID is not null. Performs the initialization of the component. This method is executed within the lock on the object being initialized. The default implementation of this method is a no-op.- Overrides:
doInitialize
in classAbstractInitializableComponent
- Throws:
ComponentInitializationException
- thrown if there is a problem initializing the component
-