uk.org.ogsadai.engine
Interface ActivityFactory
- All Known Implementing Classes:
- ActivityFactoryImpl
- public interface ActivityFactory
An ActivityFactory is responsible for constructing the
activities described in perform documents. The ActivityEngine
is configured using an ActivityFactory.
- Author:
- The OGSA-DAI Project Team
|
Method Summary |
Activity[] |
createActivities(org.w3c.dom.Document document)
Constructs the activity implementations for each of the activity elements
contained in the specified perform document. |
createActivities
public Activity[] createActivities(org.w3c.dom.Document document)
throws ActivityUserException,
ActivitySystemException,
DocumentValidationException
- Constructs the activity implementations for each of the activity elements
contained in the specified perform document.
- Parameters:
document - The perform document containing the element to use to create
the activities.
- Returns:
- An array of
Activity objects.
- Throws:
ActivityUserException - If a user mistake prevents one or more activities from being
constructed successfully. This may be raised in either of the
following circumstances:
- one or more of the activities described in the perform
document are unsupported by this factory
- a required element or attribute has been omitted from an
activity element in a perform document
ActivitySystemException - If there is a system fault that prevents an Activity from
being constructed successfully. This indicates an activity
programming or configuration error.
DocumentValidationException - If the document is in some way invalid.
java.lang.IllegalArgumentException - If the performDocument parameter is null.