|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.danet.an.workflow.spis.rms.ResourceManagementServiceFactory
Defines a factory API that enables a workflow component to obtain a workflow resource management service.
Constructor Summary | |
protected |
ResourceManagementServiceFactory()
Constructor. |
Method Summary | |
ResourceAssignmentContext |
getResourceAssignmentContext()
|
ResourceAssignmentService |
getResourceAssignmentService()
Deprecated. see
|
static ResourceManagementServiceFactory |
newInstance()
Obtain a new instance of a ResourceManagementServiceFactory .
|
abstract ResourceManagementService |
newResourceManagementService()
Creates a new instance of a . |
void |
setResourceAssignmentContext(ResourceAssignmentContext resourceAssignmentContext)
Specifies the resource assignment service to be used by the instances of
subsequently created (by calling ).
|
void |
setResourceAssignmentService(ResourceAssignmentService service)
Deprecated. the resource management service needs only a small subset of the methods provided by a ResourceAssignmentService . To allow greater
flexibility when implementing a resource management service,
the requirement for a complete resource assignment service
has been replaced with the requirement for a
ResourceAssignmentContext . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected ResourceManagementServiceFactory()
Method Detail |
public static ResourceManagementServiceFactory newInstance() throws FactoryConfigurationError
ResourceManagementServiceFactory
.
This static method creates a new factory instance . The method uses the
following ordered lookup procedure to determine the
ResourceManagementServiceFactory
implementation class to
load:
initial naming context
is
available, look for a a classname in
java:comp/env/de.danet.an.workflow.spis.rms.ResourceManagementServiceFactory
.
The configuration for a class as resource management service thus looks
like:
<env-entry> <description>Configure the resource management factory</description> <env-entry-name>de.danet.an.workflow.spis.ras.ResourceManagementServiceFactory</env-entry-name> <env-entry-type>java.lang.String</env-entry-type> <env-entry-value>FactoryImplementationClass</env-entry-value> </env-entry> <env-entry>Note that this environment entry must be inserted in the
ejb-jar.xml
or web.xml
for every EJB resp.
servlet that calls the
newInstance
method of
ResourceManagementServiceFactory
.META-INF/services/de.danet.an.workflow.spis.rms.ResourceManagementServiceFactory
.
in jars available to the runtime.
ResourceManagementServiceFactory
.
FactoryConfigurationError
- if a factory instance can't be created.public void setResourceAssignmentService(ResourceAssignmentService service)
ResourceAssignmentService
. To allow greater
flexibility when implementing a resource management service,
the requirement for a complete resource assignment service
has been replaced with the requirement for a
ResourceAssignmentContext
.
ResourceManagementService
subsequently created (by calling newResourceManagementService()
).
A resource management service needs a reference to a resource assignment
service to be able to implement
objects. The method WfResource
workItems
requires that a
WfAssignment
be returned, something that can only be done
in cooperation with the resource assignment service.
An implementation problem may arise from the requirement to set a
ResourceAssignmentService
as implementations of
ResourceAssignmentService
that in turn rely on a
ResourceManagementService
may need a
ResourceManagementService
in order to be instantiated.
Such implementations of ResourceAssignmentService
have
therefore to delay the actual request for a
ResourceManagementService
instance until they have made
themselves known to the ResourceManagementServiceFactory
.
service
- the resource management service.getResourceAssignmentService()
public ResourceAssignmentService getResourceAssignmentService()
setResourceAssignmentService
setResourceAssignmentService
.
setResourceAssignmentService(de.danet.an.workflow.spis.ras.ResourceAssignmentService)
public abstract ResourceManagementService newResourceManagementService() throws FactoryConfigurationError
ResourceManagementService
.
FactoryConfigurationError
- if a service instance can't be created.public void setResourceAssignmentContext(ResourceAssignmentContext resourceAssignmentContext)
ResourceManagementService
subsequently created (by calling newResourceManagementService()
).
A resource management service needs a reference to a resource assignment
context to be able to implement
objects. E.g. the method WfResource
workItems
requires that a
WfAssignment
be returned, something that can only be done
in cooperation with the resource assignment service.
resourceAssignmentContext
- The resourceAssignmentContext to set.public ResourceAssignmentContext getResourceAssignmentContext()
setResourceAssignmentContext(ResourceAssignmentContext)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |