|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbiz.wedoit4u.ejb.session.SessionBeanAdapter
public class SessionBeanAdapter
An adapter class that provides empty implementation for all the
methods specified in the SessionBean interface.
Copyright 2003, wedoit4u.biz
| Field Summary | |
|---|---|
protected javax.ejb.SessionContext |
sessionContext
An instance variable that holds a reference to the associated session context. |
| Constructor Summary | |
|---|---|
SessionBeanAdapter()
|
|
| Method Summary | |
|---|---|
void |
ejbActivate()
The activate method is called when the instance is activated from its "passive" state. |
void |
ejbCreate()
Dummy implementation of a create method. |
void |
ejbPassivate()
The passivate method is called before the instance enters the "passive" state. |
void |
ejbRemove()
A container invokes this method before it ends the life of the session object. |
void |
setSessionContext(javax.ejb.SessionContext ctx)
Set the associated session context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected javax.ejb.SessionContext sessionContext
| Constructor Detail |
|---|
public SessionBeanAdapter()
| Method Detail |
|---|
public void setSessionContext(javax.ejb.SessionContext ctx)
throws javax.ejb.EJBException
sessionContext instance variable.
This method is called with no transaction context.
setSessionContext in interface javax.ejb.SessionBeanctx - - A SessionContext interface for
the instance.
javax.ejb.EJBException - - Thrown by the method to indicate a failure
caused by a system-level error.
public void ejbRemove()
throws javax.ejb.EJBException
This method is called with no transaction context.
ejbRemove in interface javax.ejb.SessionBeanjavax.ejb.EJBException - - Thrown by the method to indicate a failure
caused by a system-level error.
public void ejbActivate()
throws javax.ejb.EJBException
ejbPassivate() method.
This method is called with no transaction context.
ejbActivate in interface javax.ejb.SessionBeanjavax.ejb.EJBException - - Thrown by the method to indicate a failure
caused by a system-level error.
public void ejbPassivate()
throws javax.ejb.EJBException
ejbActivate() method.
After the passivate method completes, the instance must be in a state that allows the container to use the Java Serialization protocol to externalize and store away the instance's state.
This method is called with no transaction context.
ejbPassivate in interface javax.ejb.SessionBeanjavax.ejb.EJBException - - Thrown by the method to indicate a failure
caused by a system-level error.
public void ejbCreate()
throws javax.ejb.EJBException
javax.ejb.EJBException
|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||