|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.org.ogsadai.activity.ActivityTypesDocumentCreator
Creates an XML document describing the activities supported
by an ActivityFactory
. Note that this document is
created anew using the activity configuration information each time
the create
method is called. This is so that the
document does not need to be stored in memory. The performance
consequence of this design decision is acceptable because it is
anticipated that this document will be requested infrequently.
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement. |
private static DAILogger |
LOG
Logger object for logging in this class. |
private ActivityConfig[] |
mActivityConfigs
Configuration details of the activities. |
Constructor Summary | |
ActivityTypesDocumentCreator(ActivityConfig[] activityConfigs)
Creates an instance that will use the given activity configuration details. |
Method Summary | |
private org.w3c.dom.Document |
buildDocument(ActivityConfig[] activityConfigs)
Builds the document describing the activity types that are supported. |
java.lang.Object |
create()
Create the XML document |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private static final DAILogger LOG
private final ActivityConfig[] mActivityConfigs
Constructor Detail |
public ActivityTypesDocumentCreator(ActivityConfig[] activityConfigs)
activityConfigs
- Details of the supported activitiesMethod Detail |
public java.lang.Object create() throws ActivityTypesCreationException
ActivityTypesCreationException
- If a problem is encountered during the creation.private org.w3c.dom.Document buildDocument(ActivityConfig[] activityConfigs) throws ActivityTypesCreationException
activityConfigs
- Array of configuration details for each activity.
ActivityTypesCreationException
- If a problem is encountered during the creation.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |