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

java.lang.Objectde.danet.an.workflow.spis.rms.ResourceManagementServiceFactory
de.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
- extends de.danet.an.workflow.spis.rms.ResourceManagementServiceFactory
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:
- Look for a name in
java:comp/env/de.danet.an.staffmgmt.resource.staffDirectory. The configuration forStaffMgmtResourceManagementServiceFactoryusing this mechanism thus looks like:<env-entry> <description>Configure the chosen factory</description> <env-entry-name>de.danet.an.staffmgmt.resource.staffDirectory</env-entry-name> <env-entry-type>java.lang.String</env-entry-type> <env-entry-value>JNDI name of staff directory 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 ofResourceManagementServiceFactory. - Find the application resource file
de.danet.an.staffmgmt-rms.propertiesand look for an entry "staffDirectory = JNDI name of assignment service EJB home". - Use the fallback JNDI name
de.danet.an.staffmgmt.StaffDirectory.
| 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>
newInstance55 method ofResourceManagementServiceFactory.
| 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 aResourceAssignmentServiceor aResourceAssignmentServiceFactorymust 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.
|
|||||||||
| Home >> All >> de >> danet >> an >> staffmgmt >> [ resource overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC