org.objectweb.easybeans.deployment.annotations.helper.bean
Class EJB21Finder

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

public final class EJB21Finder
extends java.lang.Object

This class finds the business interface that are used as return type in the Home or LocalHome interface of the Bean.

Author:
Florent Benoit

Field Summary
private static JMethod GETHANDLE_METHOD
          Signature of the getHandle method.
private static JMethod GETPRIMARYKEY_METHOD
          Signature of the getHandle method.
private static JMethod ISIDENTICAL_LOCAL_METHOD
          Signature of the isIdentical(EJBLocalObject) method.
private static JMethod ISIDENTICAL_METHOD
          Signature of the isIdentical(EJBObject) method.
private static JMethod REMOVE_METHOD
          Signature of the remove method.
 
Constructor Summary
private EJB21Finder()
          Helper class, no public constructor.
 
Method Summary
private static void getInterfacesFromHome(java.lang.String home, java.util.List<java.lang.String> interfacesList, EjbJarAnnotationMetadata ejbJarAnnotationMetadata)
          Found interfaces specified on return type of the createXXX() method and add them in the given list.
static void resolve(ClassAnnotationMetadata bean)
          Finds business method in a session bean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REMOVE_METHOD

private static final JMethod REMOVE_METHOD
Signature of the remove method.


ISIDENTICAL_METHOD

private static final JMethod ISIDENTICAL_METHOD
Signature of the isIdentical(EJBObject) method.


ISIDENTICAL_LOCAL_METHOD

private static final JMethod ISIDENTICAL_LOCAL_METHOD
Signature of the isIdentical(EJBLocalObject) method.


GETHANDLE_METHOD

private static final JMethod GETHANDLE_METHOD
Signature of the getHandle method.


GETPRIMARYKEY_METHOD

private static final JMethod GETPRIMARYKEY_METHOD
Signature of the getHandle method.

Constructor Detail

EJB21Finder

private EJB21Finder()
Helper class, no public constructor.

Method Detail

resolve

public static void resolve(ClassAnnotationMetadata bean)
Finds business method in a session bean.

Parameters:
bean - the bean to analyze

getInterfacesFromHome

private static void getInterfacesFromHome(java.lang.String home,
                                          java.util.List<java.lang.String> interfacesList,
                                          EjbJarAnnotationMetadata ejbJarAnnotationMetadata)
Found interfaces specified on return type of the createXXX() method and add them in the given list.

Parameters:
home - the name of the class to analyze.
interfacesList - the given list where to add interfaces found
ejbJarAnnotationMetadata - the metatada where to get metadata