org.obe.spi.service
Class XPDLParserFactory

java.lang.Object
  extended byorg.obe.spi.service.XPDLParserFactory
All Implemented Interfaces:
WorkflowService

public final class XPDLParserFactory
extends java.lang.Object
implements WorkflowService

Supports parsing multiple process definition languages into the XPDL model.

Author:
Adrian Price

Field Summary
static java.lang.String SERVICE_NAME
           
 
Constructor Summary
XPDLParserFactory(ServiceManager svcMgr)
           
 
Method Summary
 XPDLParser createParser(java.lang.String contentType)
           
 XPDLSerializer createSerializer(java.lang.String contentType)
           
 void exit()
          De-initializes the service.
 ServiceManager getServiceManager()
          Returns the service manager that owns this service implementation.
 java.lang.String getServiceName()
          Returns the name of the service.
 void init()
          Initializes the service.
 void registerParser(java.lang.String contentType, java.lang.String parserClass, java.lang.String serializerClass)
           
 void unregisterParser(java.lang.String contentType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE_NAME

public static final java.lang.String SERVICE_NAME
See Also:
Constant Field Values
Constructor Detail

XPDLParserFactory

public XPDLParserFactory(ServiceManager svcMgr)
Method Detail

createParser

public XPDLParser createParser(java.lang.String contentType)
                        throws ObjectNotFoundException
Throws:
ObjectNotFoundException

createSerializer

public XPDLSerializer createSerializer(java.lang.String contentType)
                                throws ObjectNotFoundException
Throws:
ObjectNotFoundException

getServiceManager

public ServiceManager getServiceManager()
Description copied from interface: WorkflowService
Returns the service manager that owns this service implementation.

Specified by:
getServiceManager in interface WorkflowService
Returns:
The service manager.

getServiceName

public java.lang.String getServiceName()
Description copied from interface: WorkflowService
Returns the name of the service.

Specified by:
getServiceName in interface WorkflowService
Returns:
Service name.

init

public void init()
Description copied from interface: WorkflowService
Initializes the service.

Specified by:
init in interface WorkflowService

exit

public void exit()
Description copied from interface: WorkflowService
De-initializes the service.

Specified by:
exit in interface WorkflowService

registerParser

public void registerParser(java.lang.String contentType,
                           java.lang.String parserClass,
                           java.lang.String serializerClass)
                    throws ObjectAlreadyExistsException
Throws:
ObjectAlreadyExistsException

unregisterParser

public void unregisterParser(java.lang.String contentType)


SourceForge.net Logo OBE-1.0 Copyright (c) 2002-2006 Adrian Price. All Rights Reserved.