|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Registry
A Registry is a Singleton that provides registration
and lookup facilities for Activity
instances. All Activity
instances registered in a Registry must have unique id
properties, but lookup facilities may be used to select zero or more
Activities that match particular patterns. This can be used, for example,
to select a Locale-specific version of a particular Activity.
FIXME - Initial version of this interface does not have any of the fancy lookup capabilities allued to above.
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 . |
void |
removeActivity(Activity activity)
Remove the specified Activity from this Registry. |
Method Detail |
---|
void addActivity(Activity activity)
activity
- The new activity to be addedvoid clear()
Activity[] findActivities()
Activity findActivity(String id)
null
.
id
- Identifier of the desired Activityvoid removeActivity(Activity activity)
activity
- The Activity to be removed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |