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

java.lang.Object
  extended by net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
All Implemented Interfaces:
Component, InitializableComponent
Direct Known Subclasses:
AbstractIdentifiableInitializableComponent

public abstract class AbstractInitializableComponent
extends Object
implements InitializableComponent

Base class for things that implement InitializableComponent.


Field Summary
private  boolean isInitialized
          Whether this component has been initialized.
 
Constructor Summary
AbstractInitializableComponent()
           
 
Method Summary
protected  void doInitialize()
          Performs the initialization of the component.
 void initialize()
          Initializes the component.
 boolean isInitialized()
          Gets whether this component is initialized.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isInitialized

private boolean isInitialized
Whether this component has been initialized.

Constructor Detail

AbstractInitializableComponent

public AbstractInitializableComponent()
Method Detail

isInitialized

public boolean isInitialized()
Gets whether this component is initialized.

Specified by:
isInitialized in interface InitializableComponent
Returns:
whether this component is initialized

initialize

public final void initialize()
                      throws ComponentInitializationException
Initializes the component.

Specified by:
initialize in interface InitializableComponent
Throws:
ComponentInitializationException - thrown if there is a problem initializing 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.

Throws:
ComponentInitializationException - thrown if there is a problem initializing the component


Copyright © 1999-2012. All Rights Reserved.