uk.org.ogsadai.engine
Class ActivityTypesDocumentCreator

java.lang.Object
  |
  +--uk.org.ogsadai.engine.ActivityTypesDocumentCreator
All Implemented Interfaces:
ObjectCreator

public class ActivityTypesDocumentCreator
extends java.lang.Object
implements ObjectCreator

Creates a Document describing the activities supported by an OGSADAIActivityFactory. Note that this Document is created anew using the activity configuration file each time the create method is called. This is so that the document does not need to be stored in memory for the life of an engine. The performance consequence of this design decision is acceptable because it is anticipated that this document will be requested infrequently.

Author:
The OGSA-DAI Project Team

Constructor Summary
ActivityTypesDocumentCreator(java.lang.String path)
          Creates an instance that will use the activity configuration file at the specified location.
 
Method Summary
 java.lang.Object create()
          Creates an Object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActivityTypesDocumentCreator

public ActivityTypesDocumentCreator(java.lang.String path)
Creates an instance that will use the activity configuration file at the specified location.

Parameters:
path - path String to the activity configuration file
Method Detail

create

public java.lang.Object create()
                        throws ObjectCreationException
Description copied from interface: ObjectCreator
Creates an Object. The concrete type is determined by the implementation class.

Specified by:
create in interface ObjectCreator
Returns:
an Object of some type
Throws:
ObjectCreationException - if there is a problem creating the object