|
|||||||||
| Home >> All >> de >> danet >> an >> workflow >> [ assignment overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
de.danet.an.workflow.assignment
Class StandardResourceAssignmentServiceFactory

java.lang.Objectde.danet.an.workflow.spis.ras.ResourceAssignmentServiceFactory
de.danet.an.workflow.assignment.StandardResourceAssignmentServiceFactory
- public class StandardResourceAssignmentServiceFactory
- extends de.danet.an.workflow.spis.ras.ResourceAssignmentServiceFactory
Implements a simple resource assignment service factory.
Usage of this class as service factory requires an additional configuration parameter. The service factory implementation needs to connect to the assignment service EJB. In order to do so, it needs a JNDI name to look up the home interface. As JNDI names must be changeable by the application deployer, the name can't be hard coded.
This factory therefore uses the following ordered lookup procedure to determine the JNDI name of the assignment service EJB home interface:
- Look for a name in
java:comp/env/de.danet.an.workflow.assignment.assignmentService. The configuration forStandardResourceAssignmentServiceFactoryusing this mechanism thus looks like:<env-entry> <description>Configure the chosen factory</description> <env-entry-name>de.danet.an.workflow.assignment.assignmentService</env-entry-name> <env-entry-type>java.lang.String</env-entry-type> <env-entry-value>JNDI name of assignment service EJB home</env-entry-value> </env-entry>
Note that this environment entry must be inserted in theejb-jar.xmlorweb.xmlfor every EJB resp. servlet that calls the newInstance>newInstance55 method ofResourceAssignmentServiceFactory. - Find the application resource file
de/danet/an/workflow/ras.propertiesand look for an entry "assignmentService = JNDI name of assignment service EJB home". - Use the fallback JNDI name
de.danet.an.workflow.assignment.AssignmentService.
ResourceManagementService to access a resource
management facility. To obtain the service it calls the newInstance>newInstance 55 method of ResourceManagementServiceFactory>ResourceManagementServiceFactory. Thus if this
factory (StandardResourceAssignmentServiceFactory) is
configured as resource assignment service factory, all
configuration information required by
ResourceManagementServiceFactory.newInstance (and by
the actually configured resource management service factory
implementation) must be available when the newInstance>newInstance 55 method of
ResourceAssignmentServiceFactory is called.
| Field Summary | |
private AssignmentService |
as
The assignment service passed to service instances. |
private static java.lang.String |
homeName
The home interface name of the assignment service. |
private de.danet.an.workflow.spis.rms.ResourceManagementServiceFactory |
rmsf
The configured resource management factory. |
| Fields inherited from class de.danet.an.workflow.spis.ras.ResourceAssignmentServiceFactory |
|
| Constructor Summary | |
StandardResourceAssignmentServiceFactory()
Constructor. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
Two resource assignment service factories are equal if they are identically configured. |
private static java.lang.String |
findHomeName()
Tries to find the name of the assignment service home interface as described for the class. |
int |
hashCode()
Generate a hash code. |
de.danet.an.workflow.spis.ras.ResourceAssignmentService |
newResourceAssignmentService()
Creates a new instance of a ResourceAssignmentService> ResourceAssignmentService. |
| Methods inherited from class de.danet.an.workflow.spis.ras.ResourceAssignmentServiceFactory |
newInstance |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
rmsf
private de.danet.an.workflow.spis.rms.ResourceManagementServiceFactory rmsf
- The configured resource management factory.
as
private AssignmentService as
- The assignment service passed to service instances.
homeName
private static java.lang.String homeName
- The home interface name of the assignment service.
| Constructor Detail |
StandardResourceAssignmentServiceFactory
public StandardResourceAssignmentServiceFactory()
throws de.danet.an.workflow.spis.ras.FactoryConfigurationError
- Constructor.
| Method Detail |
findHomeName
private static java.lang.String findHomeName()
- Tries to find the name of the assignment service home interface
as described for the class.
newResourceAssignmentService
public de.danet.an.workflow.spis.ras.ResourceAssignmentService newResourceAssignmentService() throws de.danet.an.workflow.spis.ras.FactoryConfigurationError
- Description copied from class:
de.danet.an.workflow.spis.ras.ResourceAssignmentServiceFactory - Creates a new instance of a ResourceAssignmentService>
ResourceAssignmentService.
equals
public boolean equals(java.lang.Object obj)
- Two resource assignment service factories are equal if they are
identically configured.
hashCode
public int hashCode()
- Generate a hash code.
|
|||||||||
| Home >> All >> de >> danet >> an >> workflow >> [ assignment overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC