|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.workflow.base.BaseRegistry
public class BaseRegistry
BaseRegistry is a convenient base class for more
sophisticated Registry implementations.
| Field Summary | |
|---|---|
protected HashMap |
activities
The set of Activity instances registered with this Registry, keyed by identifier. |
protected static Registry |
registry
The singleton registry instance. |
| Constructor Summary | |
|---|---|
BaseRegistry()
|
|
| Method Summary | |
|---|---|
void |
addActivity(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. |
Activity[] |
findActivities()
Return the complete set of Activity instances associated with this Activity. |
Activity |
findActivity(String id)
Return the registered Activity with the specified identifier, if any; otherwise return null. |
static Registry |
getRegistry()
Factory method to return a Singleton (per class loader) Registry instance. |
void |
removeActivity(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 HashMap activities
protected static Registry registry
| Constructor Detail |
|---|
public BaseRegistry()
| Method Detail |
|---|
public void addActivity(Activity activity)
addActivity in interface Registryactivity - The new activity to be addedpublic void clear()
clear in interface Registrypublic Activity[] findActivities()
findActivities in interface Registrypublic Activity findActivity(String id)
null.
findActivity in interface Registryid - Identifier of the desired Activitypublic void removeActivity(Activity activity)
removeActivity in interface Registryactivity - The Activity to be removedpublic static Registry getRegistry()
Registry instance.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||