Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

de.danet.an.workflow.assignment
Class StandardResourceAssignmentServiceFactory  view StandardResourceAssignmentServiceFactory download StandardResourceAssignmentServiceFactory.java

java.lang.Object
  extended byde.danet.an.workflow.spis.ras.ResourceAssignmentServiceFactory
      extended byde.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:

This implementation uses an instance of ResourceManagementService>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.