|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.deployment.annotations.helper.bean.session.SessionBeanInterface
public final class SessionBeanInterface
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.
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 java.util.List<java.lang.String> |
getAllInterfacesFromClass(ClassAnnotationMetadata sessionBean)
Gets all interfaces used by a class. |
private static MethodAnnotationMetadata |
getMethod(ClassAnnotationMetadata sessionBean,
JMethod jMethod,
boolean inherited)
Gets method metadata on the given class metadata for the given method. |
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 |
---|
private static final java.lang.String SESSION_BEAN_INTERFACE
private static final JMethod SETSESSIONCONTEXT_METHOD
private static final JMethod EJBREMOVE_METHOD
private static final JMethod EJBACTIVATE_METHOD
private static final JMethod EJBPASSIVATE_METHOD
Constructor Detail |
---|
private SessionBeanInterface()
Method Detail |
---|
public static void resolve(ClassAnnotationMetadata sessionBean)
sessionBean
- Session bean to analyzeprivate static MethodAnnotationMetadata getMethod(ClassAnnotationMetadata sessionBean, JMethod jMethod, boolean inherited)
sessionBean
- the class metadata on which retrieve the methodjMethod
- the method to getinherited
- get the correct method in super class, not inherited
public static java.util.List<java.lang.String> getAllInterfacesFromClass(ClassAnnotationMetadata sessionBean)
sessionBean
- the metadata to analyze.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |