org.objectweb.easybeans.deployment.annotations.helper.bean.session
Class SessionBeanInterface

java.lang.Object
  extended by org.objectweb.easybeans.deployment.annotations.helper.bean.session.SessionBeanInterface

public final class SessionBeanInterface
extends java.lang.Object

This class analyze interfaces of the session bean. If the session bean implements javax.ejb.SessionBean interface, add lifecycle callbacks and add resource injection for setSessionContext method.

Author:
Florent Benoit

Field Summary
private static JMethod EJBACTIVATE_METHOD
          ejbActivate() method.
private static JMethod EJBPASSIVATE_METHOD
          ejbPassivate() method.
private static JMethod EJBREMOVE_METHOD
          ejbRemove() method.
private static java.lang.String SESSION_BEAN_INTERFACE
          SessionBean interface.
private static JMethod SETSESSIONCONTEXT_METHOD
          setSessionContext() method.
 
Constructor Summary
private SessionBeanInterface()
          Helper class, no public constructor.
 
Method Summary
static void resolve(ClassAnnotationMetadata sessionBean)
          Try to see if bean implements javax.ejb.SessionBean interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SESSION_BEAN_INTERFACE

private static final java.lang.String SESSION_BEAN_INTERFACE
SessionBean interface.

See Also:
Constant Field Values

SETSESSIONCONTEXT_METHOD

private static final JMethod SETSESSIONCONTEXT_METHOD
setSessionContext() method.


EJBREMOVE_METHOD

private static final JMethod EJBREMOVE_METHOD
ejbRemove() method.


EJBACTIVATE_METHOD

private static final JMethod EJBACTIVATE_METHOD
ejbActivate() method.


EJBPASSIVATE_METHOD

private static final JMethod EJBPASSIVATE_METHOD
ejbPassivate() method.

Constructor Detail

SessionBeanInterface

private SessionBeanInterface()
Helper class, no public constructor.

Method Detail

resolve

public static void resolve(ClassAnnotationMetadata sessionBean)
Try to see if bean implements javax.ejb.SessionBean interface.

Parameters:
sessionBean - Session bean to analyze