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

Quick Search    Search Deep

de.danet.an.staffmgmt.userprefs
Class StaffMgmtUserPrefsServiceFactory  view StaffMgmtUserPrefsServiceFactory download StaffMgmtUserPrefsServiceFactory.java

java.lang.Object
  extended byde.danet.an.util.userprefs.UserPrefsServiceFactory
      extended byde.danet.an.staffmgmt.userprefs.StaffMgmtUserPrefsServiceFactory

public class StaffMgmtUserPrefsServiceFactory
extends de.danet.an.util.userprefs.UserPrefsServiceFactory

Implements a user preferences service factory based on the staffmgmt package.

Usage of this class as service factory requires an additional configuration parameter. The service factory implementation needs to connect to the staff directory 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 staff directory EJB home interface:


Field Summary
private static java.lang.String homeName
          The home interface name of the staff management service.
private static org.apache.commons.logging.Log logger
           
private  de.danet.an.staffmgmt.domain.StaffDirectory sd
          The staff directory passed to service instances.
 
Fields inherited from class de.danet.an.util.userprefs.UserPrefsServiceFactory
 
Constructor Summary
StaffMgmtUserPrefsServiceFactory()
          Constructor, called by the newInstance>newInstance 55 method of UserPrefsServiceFactory.
 
Method Summary
private static java.lang.String findHomeName()
          Tries to find the name of the staff management service home interface as described for the class.
 de.danet.an.util.userprefs.UserPrefsService newUserPrefsService(java.lang.String userId, java.util.Properties props)
          Creates a new instance of a UserPrefsService>UserPrefsService for a specific user.
 
Methods inherited from class de.danet.an.util.userprefs.UserPrefsServiceFactory
newInstance, newUserPrefsService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static final org.apache.commons.logging.Log logger

sd

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


homeName

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

Constructor Detail

StaffMgmtUserPrefsServiceFactory

public StaffMgmtUserPrefsServiceFactory()
                                 throws de.danet.an.util.userprefs.FactoryConfigurationError
Constructor, called by the newInstance>newInstance 55 method of UserPrefsServiceFactory.

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.


newUserPrefsService

public de.danet.an.util.userprefs.UserPrefsService newUserPrefsService(java.lang.String userId,
                                                                       java.util.Properties props)
                                                                throws de.danet.an.util.userprefs.ServiceUnavailableException
Creates a new instance of a UserPrefsService>UserPrefsService for a specific user.