|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.shibboleth.metadata.pipeline.AbstractComponent
@ThreadSafe public abstract class AbstractComponent
Base implementation for pipeline components.
All classes which extend this base class must ensure that the state of the object does not change
after initialize() is called. In particular, any setter method should check to see if the component has been
initialized and, if so, immediately return without altering the component state.
| Field Summary | |
|---|---|
private String |
id
Unique ID for the component. |
private DateTime |
initInstant
Instant when the component was initialized. |
private Logger |
log
Class logger. |
| Constructor Summary | |
|---|---|
AbstractComponent()
|
|
| Method Summary | |
|---|---|
protected void |
doInitialize()
Do the initialization of the component. |
boolean |
equals(Object obj)
|
String |
getId()
Gets a unique identifier for the component. |
DateTime |
getInitializationInstant()
Gets the instant the component was initialized. |
int |
hashCode()
|
void |
initialize()
Initializes the component. |
boolean |
isInitialized()
Checks whether the component has been initialized. |
void |
setId(String componentId)
Sets the ID of this component. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final Logger log
private String id
private DateTime initInstant
| Constructor Detail |
|---|
public AbstractComponent()
| Method Detail |
|---|
public String getId()
getId in interface Componentpublic void setId(String componentId)
componentId - ID of the component, may not be null or emptypublic final DateTime getInitializationInstant()
getInitializationInstant in interface Component
public final void initialize()
throws ComponentInitializationException
IllegalStateException.
initialize in interface ComponentComponentInitializationException - thrown if there is a problem initializing the component for usepublic final boolean isInitialized()
isInitialized in interface Componentpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
protected void doInitialize()
throws ComponentInitializationException
ComponentInitializationException - throw if there is a problem initializing the component
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||