|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.danet.an.workflow.spis.ras.ResourceAssignmentServiceFactory
Defines a factory API that enables the workflow component to obtain a resource assignment facility.
Constructor Summary | |
protected |
ResourceAssignmentServiceFactory()
Constructor. |
Method Summary | |
static ResourceAssignmentServiceFactory |
newInstance()
Obtain a new instance of a ResourceAssignmentServiceFactory . |
abstract ResourceAssignmentService |
newResourceAssignmentService()
Creates a new instance of a . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected ResourceAssignmentServiceFactory()
Method Detail |
public static ResourceAssignmentServiceFactory newInstance() throws FactoryConfigurationError
ResourceAssignmentServiceFactory
. This static method
creates a new factory instance. The method uses the following
ordered lookup procedure to determine the
ResourceAssignmentServiceFactory
implementation class
to load:
initial naming context
is available, look for a a classname in
java:comp/env/de.danet.an.workflow.spis.ras.ResourceAssignmentServiceFactory
.
The configuration for a class as resource assignment service
thus looks like:
<env-entry> <description>Configure the resource assignment factory</description> <env-entry-name>de.danet.an.workflow.spis.ras.ResourceAssignmentServiceFactory</env-entry-name> <env-entry-type>java.lang.String</env-entry-type> <env-entry-value>FactoryImplementationClass</env-entry-value> </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
ResourceAssignmentServiceFactory
.META-INF/services/de.danet.an.workflow.spis.ras.ResourceAssignmentServiceFactory
.
in jars available to the runtime.
ResourceAssignmentServiceFactory
.
FactoryConfigurationError
- if a factory instance can't be
created.public abstract ResourceAssignmentService newResourceAssignmentService() throws FactoryConfigurationError
ResourceAssignmentService
.
FactoryConfigurationError
- if not all required resources
can be obtained.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |