com.bm.ejb3metadata.annotations.helper.bean.session
Class SessionBeanInterface

java.lang.Object
  extended by com.bm.ejb3metadata.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

Method Summary
static java.util.List<java.lang.String> getAllInterfacesFromClass(ClassAnnotationMetadata sessionBean)
          Gets all interfaces used by a class.
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
 

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

getAllInterfacesFromClass

public static java.util.List<java.lang.String> getAllInterfacesFromClass(ClassAnnotationMetadata sessionBean)
Gets all interfaces used by a class.

Parameters:
sessionBean - the metadata to analyze.
Returns:
the list of interfaces from a given class.


Copyright © 2008. All Rights Reserved.