|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbiz.wedoit4u.ejb.session.SessionBeanProvider
public final class SessionBeanProvider
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.
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 |
|---|
public static final java.lang.String DATE_FORMATTER_LOCATION
JNDI location to use to look up the home
object for the DateFormatter session bean.
public static final java.lang.String DATABASE_ACTION_LOCATION
JNDI location to use to look up the home
object for the DatabaseAction session bean.
private static DateFormatterHome dateFormatterHome
DateFormatterHome home object.
private static DatabaseActionHome databaseActionHome
DatabaseActionHome home object.
| Constructor Detail |
|---|
public SessionBeanProvider()
| Method Detail |
|---|
public static final DateFormatterHome getDateFormatterHome()
throws javax.naming.NamingException
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.
javax.naming.NamingException - - If errors are encountered while looking
up the JNDI location for the home
object.
public static final DateFormatter getDateFormatter()
throws javax.naming.NamingException,
javax.ejb.CreateException
DateFormatter session bean.
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.getDateFormatterHome()
public static final DatabaseActionHome getDatabaseActionHome()
throws javax.naming.NamingException
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.
javax.naming.NamingException - - If errors are encountered while looking
up the JNDI location for the home
object.
public static final DatabaseAction getDatabaseAction()
throws javax.naming.NamingException,
javax.ejb.CreateException
DatabaseAction session bean.
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.getDatabaseActionHome()
|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||