|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.workflow.base.BaseRegistry
BaseRegistry is a convenient base class for more
sophisticated Registry implementations.
| Field Summary | |
protected java.util.HashMap |
activities
The set of Activity instances registered with this Registry, keyed by identifier. |
protected static org.apache.commons.workflow.Registry |
registry
The singleton registry instance. |
| Constructor Summary | |
BaseRegistry()
|
|
| Method Summary | |
void |
addActivity(org.apache.commons.workflow.Activity activity)
Add a new Activity to the set of Activity instances known to this Registry. |
void |
clear()
Clear any existing Activity instances registered with this Registry. |
org.apache.commons.workflow.Activity[] |
findActivities()
Return the complete set of Activity instances associated with this Activity. |
org.apache.commons.workflow.Activity |
findActivity(java.lang.String id)
Return the registered Activity with the specified identifier, if any; otherwise return null. |
static org.apache.commons.workflow.Registry |
getRegistry()
Factory method to return a Singleton (per class loader) Registry instance. |
void |
removeActivity(org.apache.commons.workflow.Activity activity)
Remove the specified Activity from this Registry. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.HashMap activities
protected static org.apache.commons.workflow.Registry registry
| Constructor Detail |
public BaseRegistry()
| Method Detail |
public void addActivity(org.apache.commons.workflow.Activity activity)
addActivity in interface org.apache.commons.workflow.Registryactivity - The new activity to be addedpublic void clear()
clear in interface org.apache.commons.workflow.Registrypublic org.apache.commons.workflow.Activity[] findActivities()
findActivities in interface org.apache.commons.workflow.Registrypublic org.apache.commons.workflow.Activity findActivity(java.lang.String id)
null.
findActivity in interface org.apache.commons.workflow.Registryid - Identifier of the desired Activitypublic void removeActivity(org.apache.commons.workflow.Activity activity)
removeActivity in interface org.apache.commons.workflow.Registryactivity - The Activity to be removedpublic static org.apache.commons.workflow.Registry getRegistry()
Registry instance.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||