org.jboss.verifier.strategy
Class AbstractEJB2xVerifier

java.lang.Object
  extended byorg.jboss.verifier.strategy.AbstractVerifier (src) 
      extended byorg.jboss.verifier.strategy.AbstractEJB2xVerifier
All Implemented Interfaces:
VerificationStrategy (src)
Direct Known Subclasses:
EJBVerifier20 (src) , EJBVerifier21 (src)

public abstract class AbstractEJB2xVerifier
extends AbstractVerifier (src)

Abstract EJB 2.x bean verifier.

Since:
08-Feb-2005

Field Summary
protected  java.lang.Class bean
           
protected  EJBVerifier11 (src) cmp1XVerifier
           
protected  java.lang.Class home
           
protected  java.lang.Class local
           
protected  java.lang.Class localHome
           
protected  java.lang.Class remote
           
protected  java.lang.Class serviceEndpointInterface
           
 
Fields inherited from class org.jboss.verifier.strategy.AbstractVerifier (src)
BEAN_MANAGED_TX, classloader, CONTAINER_MANAGED_TX, CREATE_METHOD, EJB_CREATE_METHOD, EJB_HOME_INTERFACE, EJB_HOME_METHOD, EJB_LOCAL_HOME_INTERFACE, EJB_LOCAL_OBJECT_INTERFACE, EJB_OBJECT_INTERFACE, EJB_REMOVE_METHOD, EJB_SELECT_METHOD, STATEFUL_SESSION, STATELESS_SESSION
 
Constructor Summary
AbstractEJB2xVerifier(VerificationContext (src)  context)
           
 
Method Summary
 java.util.Iterator getEjbHomeMethods(java.lang.Class c)
           
 java.util.Iterator getEJBRemoveMethods(java.lang.Class c)
          Returns the ejbRemove(...) methods of a bean
 java.util.Iterator getEjbSelectMethods(java.lang.Class c)
          Return all ejbSelect methods
 java.util.Iterator getHomeMethods(java.lang.Class c)
          Home methods are any method on the home interface which is neither a create or find method.
 boolean hasEJBRemoveMethod(java.lang.Class c)
          Searches for an instance of an ejbRemove method from the class
protected  boolean hasMatchingQuery(java.lang.reflect.Method m, EntityMetaData (src)  e)
          Check whether there is a matching <query> Element defined for the Method m
 boolean hasRemoteInterface(java.lang.Class c)
          Finds java.rmi.Remote interface from the class
 boolean isCreateMethod(java.lang.reflect.Method m)
          Check whether the given method is a create(...) method
 boolean isEjbCreateMethod(java.lang.reflect.Method m)
           
 boolean isEjbHomeMethod(java.lang.reflect.Method m)
           
 boolean isEjbRemoveMethod(java.lang.reflect.Method m)
           
 boolean isEjbSelectMethod(java.lang.reflect.Method m)
           
 
Methods inherited from class org.jboss.verifier.strategy.AbstractVerifier (src)
checkMessageBean, fireBeanVerifiedEvent, fireBeanVerifiedEvent, fireSpecViolationEvent, fireSpecViolationEvent, getContext, getCreateMethods, getDefaultCreateMethod, getEJBCreateMethods, getEJBFindByPrimaryKey, getEJBFindMethods, getFinderMethods, getMatchingEJBCreate, getMatchingEJBFind, getMatchingEJBPostCreate, getMessageBundle, getOnMessageMethods, hasANonStaticField, hasCreateMethod, hasDefaultConstructor, hasDefaultCreateMethod, hasEJBCreateMethod, hasEJBFindByPrimaryKey, hasEJBHomeInterface, hasEJBLocalHomeInterface, hasEJBLocalObjectInterface, hasEJBObjectInterface, hasEntityBeanInterface, hasFinalizer, hasFinderMethod, hasLegalRMIIIOPArguments, hasLegalRMIIIOPExceptionTypes, hasLegalRMIIIOPReturnType, hasLocalReturnType, hasMatchingEJBCreate, hasMatchingEJBFind, hasMatchingEJBHome, hasMatchingEJBPostCreate, hasMatchingExceptions, hasMatchingMethod, hasMatchingReturnType, hasMessageDrivenBeanInterface, hasMessageListenerInterface, hasMoreThanOneCreateMethods, hasNoArguments, hasOnMessageMethod, hasPrimaryKeyReturnType, hasRemoteReturnType, hasSessionBeanInterface, hasSessionSynchronizationInterface, hasSingleArgument, hasVoidReturnType, isAbstract, isAbstract, isAllFieldsPublic, isAssignableFrom, isAssignableFrom, isFinal, isFinal, isFinderMethod, isMultiObjectFinder, isOnMessageMethod, isPublic, isPublic, isRMIIDLValueType, isRMIIIOPType, isSingleObjectFinder, isStatic, isStatic, throwsCreateException, throwsFinderException, throwsNoException, throwsRemoteException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.verifier.strategy.VerificationStrategy (src)
checkEntity, checkSession
 

Field Detail

cmp1XVerifier

protected EJBVerifier11 (src)  cmp1XVerifier

bean

protected java.lang.Class bean

home

protected java.lang.Class home

remote

protected java.lang.Class remote

localHome

protected java.lang.Class localHome

local

protected java.lang.Class local

serviceEndpointInterface

protected java.lang.Class serviceEndpointInterface
Constructor Detail

AbstractEJB2xVerifier

public AbstractEJB2xVerifier(VerificationContext (src)  context)
Method Detail

isCreateMethod

public boolean isCreateMethod(java.lang.reflect.Method m)
Check whether the given method is a create(...) method

Specified by:
isCreateMethod in class AbstractVerifier (src)

isEjbCreateMethod

public boolean isEjbCreateMethod(java.lang.reflect.Method m)
Specified by:
isEjbCreateMethod in class AbstractVerifier (src)

isEjbRemoveMethod

public boolean isEjbRemoveMethod(java.lang.reflect.Method m)

isEjbSelectMethod

public boolean isEjbSelectMethod(java.lang.reflect.Method m)

isEjbHomeMethod

public boolean isEjbHomeMethod(java.lang.reflect.Method m)

hasRemoteInterface

public boolean hasRemoteInterface(java.lang.Class c)
Finds java.rmi.Remote interface from the class


getEjbSelectMethods

public java.util.Iterator getEjbSelectMethods(java.lang.Class c)
Return all ejbSelect methods


hasEJBRemoveMethod

public boolean hasEJBRemoveMethod(java.lang.Class c)
Searches for an instance of an ejbRemove method from the class


getEJBRemoveMethods

public java.util.Iterator getEJBRemoveMethods(java.lang.Class c)
Returns the ejbRemove(...) methods of a bean


getHomeMethods

public java.util.Iterator getHomeMethods(java.lang.Class c)
Home methods are any method on the home interface which is neither a create or find method.


getEjbHomeMethods

public java.util.Iterator getEjbHomeMethods(java.lang.Class c)

hasMatchingQuery

protected boolean hasMatchingQuery(java.lang.reflect.Method m,
                                   EntityMetaData (src)  e)
Check whether there is a matching <query> Element defined for the Method m

Parameters:
m - Method to check, should be either a Finder or a Select
e - EntityMetaData
Returns:
true if a matching <query> Element was located.