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

Quick Search    Search Deep

de.danet.an.staffmgmt.resource
Class StaffMgmtResourceManagementServiceFactory  view StaffMgmtResourceManagementServiceFactory download StaffMgmtResourceManagementServiceFactory.java

java.lang.Object
  extended byde.danet.an.workflow.spis.rms.ResourceManagementServiceFactory
      extended byde.danet.an.staffmgmt.resource.StaffMgmtResourceManagementServiceFactory
All Implemented Interfaces:
java.io.Serializable

public class StaffMgmtResourceManagementServiceFactory
extends de.danet.an.workflow.spis.rms.ResourceManagementServiceFactory
implements java.io.Serializable

Implements the factory API that enables a workflow component to obtain a workflow resource management service. Usage of this class as service factory requires an additional configuration parameter. The service factory implementation needs to connect to the staff management EJBs. 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 staff management EJB home interface:


Field Summary
private static java.lang.String homeName
          The home interface name of the staff management service.
private  de.danet.an.staffmgmt.domain.StaffDirectory sd
          The staff directory home passed to service instances.
 
Fields inherited from class de.danet.an.workflow.spis.rms.ResourceManagementServiceFactory
 
Constructor Summary
StaffMgmtResourceManagementServiceFactory()
          Constructor, called by the newInstance>newInstance 55 method of ResourceManagementServiceFactory.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Two resource management service factories are equal if they are identically configured.
private static java.lang.String findHomeName()
          Tries to find the name of the staff management service home interface as described for the class.
 int hashCode()
          Generate a hash code.
 de.danet.an.workflow.spis.rms.ResourceManagementService newResourceManagementService()
          Creates a new instance of a ResourceManagementService>ResourceManagementService.
 
Methods inherited from class de.danet.an.workflow.spis.rms.ResourceManagementServiceFactory
getResourceAssignmentService, newInstance, setResourceAssignmentService
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sd

private de.danet.an.staffmgmt.domain.StaffDirectory sd
The staff directory home passed to service instances.


homeName

private static java.lang.String homeName
The home interface name of the staff management service.

Constructor Detail

StaffMgmtResourceManagementServiceFactory

public StaffMgmtResourceManagementServiceFactory()
                                          throws de.danet.an.workflow.spis.rms.FactoryConfigurationError
Constructor, called by the newInstance>newInstance 55 method of ResourceManagementServiceFactory.

Method Detail

findHomeName

private static java.lang.String findHomeName()
Tries to find the name of the staff management service home interface as described for the class.


newResourceManagementService

public de.danet.an.workflow.spis.rms.ResourceManagementService newResourceManagementService()
                                                                                     throws de.danet.an.workflow.spis.rms.FactoryConfigurationError
Description copied from class: de.danet.an.workflow.spis.rms.ResourceManagementServiceFactory
Creates a new instance of a ResourceManagementService>ResourceManagementService. Either a ResourceAssignmentService or a ResourceAssignmentServiceFactory must have been set before this method is called.


equals

public boolean equals(java.lang.Object obj)
Two resource management service factories are equal if they are identically configured.


hashCode

public int hashCode()
Generate a hash code.