net.shibboleth.utilities.java.support.component
Class AbstractDestructableIdentifiableInitializableComponent

java.lang.Object
  extended by net.shibboleth.utilities.java.support.component.AbstractDestructableInitializableComponent
      extended by net.shibboleth.utilities.java.support.component.AbstractDestructableIdentifiableInitializableComponent
All Implemented Interfaces:
Component, DestructableComponent, IdentifiableComponent, InitializableComponent

public abstract class AbstractDestructableIdentifiableInitializableComponent
extends AbstractDestructableInitializableComponent
implements IdentifiableComponent

Base class for components implementing DestructableComponent, IdentifiableComponent and InitializableComponent.


Field Summary
private  String id
          ID of this component.
 
Constructor Summary
AbstractDestructableIdentifiableInitializableComponent()
           
 
Method Summary
protected  void doInitialize()
          Performs the initialization of the component.
 String getId()
          Gets the ID of this component.
protected  void setId(String componentId)
          Sets the ID of this component.
 
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractDestructableInitializableComponent
destroy, doDestroy, initialize, isDestroyed, isInitialized
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

private String id
ID of this component.

Constructor Detail

AbstractDestructableIdentifiableInitializableComponent

public AbstractDestructableIdentifiableInitializableComponent()
Method Detail

getId

public String getId()
Gets the ID of this component.

Specified by:
getId in interface IdentifiableComponent
Returns:
ID of this component, never null

setId

protected void setId(@Nonnull@NotEmpty
                     String componentId)
Sets the ID of this component.

Parameters:
componentId - ID of the component

doInitialize

protected void doInitialize()
                     throws ComponentInitializationException
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 class AbstractDestructableInitializableComponent
Throws:
ComponentInitializationException - thrown if there is a problem initializing the component


Copyright © 1999-2012. All Rights Reserved.