org.jboss.verifier.strategy
Class EJBVerifier20

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

public class EJBVerifier20
extends AbstractEJB2xVerifier (src)

EJB 2.0 bean verifier.

Since:
JDK 1.3

Field Summary
 
Fields inherited from class org.jboss.verifier.strategy.AbstractEJB2xVerifier (src)
bean, cmp1XVerifier, home, local, localHome, remote, 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
EJBVerifier20(VerificationContext (src)  context)
           
 
Method Summary
 void checkEntity(EntityMetaData (src)  entity)
          Does the entity check
 void checkMessageBean(MessageDrivenMetaData (src)  mdb)
          Provides an empty default implementation for EJB 1.1 verifier (message beans are for EJB 2.0 and greater only).
 void checkSession(SessionMetaData (src)  session)
          IMPLEMENTS VERIFICATION STRATEGY INTERFACE
 java.lang.String getMessageBundle()
           
protected  boolean hasLocalInterfaces(BeanMetaData (src)  bean)
          Check whether the bean has declared local interfaces and whether we can load the defined classes
protected  boolean hasRemoteInterfaces(BeanMetaData (src)  bean)
          Check whether the bean has declared local interfaces and whether we can load the defined classes
protected  boolean verifyBean(BeanMetaData (src)  theBean)
          Try to load the beans class declared in the <ejb-class> element.
protected  boolean verifyMessageDrivenBean(MessageDrivenMetaData (src)  mdBean)
           
protected  boolean verifySessionBean(SessionMetaData (src)  session)
           
protected  boolean verifySessionHome(SessionMetaData (src)  session)
          Verifies the session bean remote home interface against the EJB 2.0 specification.
protected  boolean verifySessionLocal(SessionMetaData (src)  session)
           
protected  boolean verifySessionLocalHome(SessionMetaData (src)  session)
          Verifies the session bean local home interface against the EJB 2.0 specification.
protected  boolean verifySessionRemote(SessionMetaData (src)  session)
           
 
Methods inherited from class org.jboss.verifier.strategy.AbstractEJB2xVerifier (src)
getEjbHomeMethods, getEJBRemoveMethods, getEjbSelectMethods, getHomeMethods, hasEJBRemoveMethod, hasMatchingQuery, hasRemoteInterface, isCreateMethod, isEjbCreateMethod, isEjbHomeMethod, isEjbRemoveMethod, isEjbSelectMethod
 
Methods inherited from class org.jboss.verifier.strategy.AbstractVerifier (src)
fireBeanVerifiedEvent, fireBeanVerifiedEvent, fireSpecViolationEvent, fireSpecViolationEvent, getContext, getCreateMethods, getDefaultCreateMethod, getEJBCreateMethods, getEJBFindByPrimaryKey, getEJBFindMethods, getFinderMethods, getMatchingEJBCreate, getMatchingEJBFind, getMatchingEJBPostCreate, 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
 

Constructor Detail

EJBVerifier20

public EJBVerifier20(VerificationContext (src)  context)
Method Detail

getMessageBundle

public java.lang.String getMessageBundle()
Specified by:
getMessageBundle in class AbstractVerifier (src)

checkSession

public void checkSession(SessionMetaData (src)  session)
IMPLEMENTS VERIFICATION STRATEGY INTERFACE


checkEntity

public void checkEntity(EntityMetaData (src)  entity)
Description copied from interface: VerificationStrategy (src)
Does the entity check


checkMessageBean

public void checkMessageBean(MessageDrivenMetaData (src)  mdb)
Description copied from class: AbstractVerifier (src)
Provides an empty default implementation for EJB 1.1 verifier (message beans are for EJB 2.0 and greater only).

Specified by:
checkMessageBean in interface VerificationStrategy (src)
Overrides:
checkMessageBean in class AbstractVerifier (src)
Parameters:
mdb - the message bean to verify

verifyBean

protected boolean verifyBean(BeanMetaData (src)  theBean)
Try to load the beans class declared in the <ejb-class> element.

Returns:
true if everything went alright

hasRemoteInterfaces

protected boolean hasRemoteInterfaces(BeanMetaData (src)  bean)
Check whether the bean has declared local interfaces and whether we can load the defined classes

Returns:
true if everything went alright

hasLocalInterfaces

protected boolean hasLocalInterfaces(BeanMetaData (src)  bean)
Check whether the bean has declared local interfaces and whether we can load the defined classes

Returns:
true if everything went alright

verifySessionHome

protected boolean verifySessionHome(SessionMetaData (src)  session)
Verifies the session bean remote home interface against the EJB 2.0 specification.

Parameters:
session - XML metadata of the session bean

verifySessionLocalHome

protected boolean verifySessionLocalHome(SessionMetaData (src)  session)
Verifies the session bean local home interface against the EJB 2.0 specification.

Parameters:
session - parsed metadata of the session bean

verifySessionRemote

protected boolean verifySessionRemote(SessionMetaData (src)  session)

verifySessionLocal

protected boolean verifySessionLocal(SessionMetaData (src)  session)

verifySessionBean

protected boolean verifySessionBean(SessionMetaData (src)  session)

verifyMessageDrivenBean

protected boolean verifyMessageDrivenBean(MessageDrivenMetaData (src)  mdBean)