Rakesh API

biz.wedoit4u.ejb.session
Class SessionBeanProvider

java.lang.Object
  extended by biz.wedoit4u.ejb.session.SessionBeanProvider

public final class SessionBeanProvider
extends java.lang.Object

This class provides utility methods to access the Session Beans that are available in this package. This class merely serves to encapsulate the mechanics of obtaining a valid reference to the requested session bean.

Version:
$Id: SessionBeanProvider.java,v 1.1 2003/10/11 15:35:01 learn Exp $
Author:
Rakesh Vidyadharan 17th September, 2003

Copyright 2003, wedoit4u.biz


Field Summary
static java.lang.String DATABASE_ACTION_LOCATION
          The JNDI location to use to look up the home object for the DatabaseAction session bean.
private static DatabaseActionHome databaseActionHome
          Store a reference to the DatabaseActionHome home object.
static java.lang.String DATE_FORMATTER_LOCATION
          The JNDI location to use to look up the home object for the DateFormatter session bean.
private static DateFormatterHome dateFormatterHome
          Store a reference to the DateFormatterHome home object.
 
Constructor Summary
SessionBeanProvider()
           
 
Method Summary
static DatabaseAction getDatabaseAction()
          Returns a reference to a DatabaseAction session bean.
static DatabaseActionHome getDatabaseActionHome()
          Return a reference to the DatabaseActionHome object.
static DateFormatter getDateFormatter()
          Returns a reference to a DateFormatter session bean.
static DateFormatterHome getDateFormatterHome()
          Return a reference to the DateFormatterHome object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATE_FORMATTER_LOCATION

public static final java.lang.String DATE_FORMATTER_LOCATION
The JNDI location to use to look up the home object for the DateFormatter session bean.

See Also:
Constant Field Values

DATABASE_ACTION_LOCATION

public static final java.lang.String DATABASE_ACTION_LOCATION
The JNDI location to use to look up the home object for the DatabaseAction session bean.

See Also:
Constant Field Values

dateFormatterHome

private static DateFormatterHome dateFormatterHome
Store a reference to the DateFormatterHome home object.


databaseActionHome

private static DatabaseActionHome databaseActionHome
Store a reference to the DatabaseActionHome home object.

Constructor Detail

SessionBeanProvider

public SessionBeanProvider()
Method Detail

getDateFormatterHome

public static final DateFormatterHome getDateFormatterHome()
                                                    throws javax.naming.NamingException
Return a reference to the DateFormatterHome object. This method simply returns a reference to the dateFormatterHome if it is not null, or populates the class field reference, and returns it.

Throws:
javax.naming.NamingException - - If errors are encountered while looking up the JNDI location for the home object.

getDateFormatter

public static final DateFormatter getDateFormatter()
                                            throws javax.naming.NamingException,
                                                   javax.ejb.CreateException
Returns a reference to a DateFormatter session bean.

Throws:
javax.naming.NamingException - - If errors are encountered while looking up the JNDI location for the home object.
javax.ejb.CreateException - - If errors are encountered while creating an instance of the DateFormatter.
See Also:
getDateFormatterHome()

getDatabaseActionHome

public static final DatabaseActionHome getDatabaseActionHome()
                                                      throws javax.naming.NamingException
Return a reference to the DatabaseActionHome object. This method simply returns a reference to the databaseActionHome if it is not null, or populates the class field reference, and returns it.

Throws:
javax.naming.NamingException - - If errors are encountered while looking up the JNDI location for the home object.

getDatabaseAction

public static final DatabaseAction getDatabaseAction()
                                              throws javax.naming.NamingException,
                                                     javax.ejb.CreateException
Returns a reference to a DatabaseAction session bean.

Throws:
javax.naming.NamingException - - If errors are encountered while looking up the JNDI location for the home object.
javax.ejb.CreateException - - If errors are encountered while creating an instance of the DatabaseAction.
See Also:
getDatabaseActionHome()

Rakesh API

Copyright © 2002-2005 - Rakesh Vidyadharan