org.jboss.verifier.strategy
Class EJBVerifier21

java.lang.Object
  extended by org.jboss.verifier.strategy.AbstractVerifier
      extended by org.jboss.verifier.strategy.AbstractEJB2xVerifier
          extended by org.jboss.verifier.strategy.EJBVerifier21
All Implemented Interfaces:
org.gjt.lindfors.pattern.Strategy, VerificationStrategy

public class EJBVerifier21
extends AbstractEJB2xVerifier

EJB 2.1 bean verifier.

Since:
02.12.2003
Version:
$Revision: 1.3.4.2 $
Author:
Christoph G. Jung, Thomas.Diesler@jboss.org

Field Summary
 
Fields inherited from class org.jboss.verifier.strategy.AbstractEJB2xVerifier
bean, cmp1XVerifier, home, local, localHome, remote, serviceEndpointInterface
 
Fields inherited from class org.jboss.verifier.strategy.AbstractVerifier
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
EJBVerifier21(VerificationContext context)
           
 
Method Summary
 void checkEntity(EntityMetaData entity)
          Does the entity check
 void checkMessageBean(MessageDrivenMetaData mdb)
          Provides an empty default implementation for EJB 1.1 verifier (message beans are for EJB 2.0 and greater only).
 void checkSession(SessionMetaData session)
          IMPLEMENTS VERIFICATION STRATEGY INTERFACE
 String getMessageBundle()
           
protected  boolean hasLegalJAXRPCArguments(Method method)
           
protected  boolean hasLegalJAXRPCReturnType(Method method)
           
protected  boolean hasLocalInterfaces(BeanMetaData bean)
          Check whether the bean has declared local interfaces and whether we can load the defined classes
protected  boolean hasRemoteInterfaces(BeanMetaData bean)
          Check whether the bean has declared local interfaces and whether we can load the defined classes
protected  boolean hasServiceEndpointInterfaces(SessionMetaData bean)
          Check whether the bean has declared service endpoint interfaces and whether we can load the defined classes
protected  boolean isJAXRPCType(Class class1)
           
protected  boolean verifyBean(BeanMetaData theBean)
          Try to load the beans class declared in the <ejb-class> element.
protected  boolean verifyMessageDrivenBean(MessageDrivenMetaData mdBean)
           
protected  boolean verifyServiceEndpoint(SessionMetaData session)
          Verify Session Bean Service Endpoint
protected  boolean verifySessionBean(SessionMetaData session)
           
protected  boolean verifySessionHome(SessionMetaData session)
          Verifies the session bean remote home interface against the EJB 2.1 specification.
protected  boolean verifySessionLocal(SessionMetaData session)
           
protected  boolean verifySessionLocalHome(SessionMetaData session)
          Verifies the session bean local home interface against the EJB 2.1 specification.
protected  boolean verifySessionRemote(SessionMetaData session)
           
 
Methods inherited from class org.jboss.verifier.strategy.AbstractEJB2xVerifier
getEjbHomeMethods, getEJBRemoveMethods, getEjbSelectMethods, getHomeMethods, hasEJBRemoveMethod, hasMatchingQuery, hasRemoteInterface, isCreateMethod, isEjbCreateMethod, isEjbHomeMethod, isEjbRemoveMethod, isEjbSelectMethod
 
Methods inherited from class org.jboss.verifier.strategy.AbstractVerifier
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

EJBVerifier21

public EJBVerifier21(VerificationContext context)
Method Detail

getMessageBundle

public String getMessageBundle()
Specified by:
getMessageBundle in class AbstractVerifier

checkSession

public void checkSession(SessionMetaData session)
IMPLEMENTS VERIFICATION STRATEGY INTERFACE


checkEntity

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


checkMessageBean

public void checkMessageBean(MessageDrivenMetaData mdb)
Description copied from class: AbstractVerifier
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
Overrides:
checkMessageBean in class AbstractVerifier
Parameters:
mdb - the message bean to verify

verifyBean

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

Returns:
true if everything went alright

hasRemoteInterfaces

protected boolean hasRemoteInterfaces(BeanMetaData 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 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 session)
Verifies the session bean remote home interface against the EJB 2.1 specification.

Parameters:
session - XML metadata of the session bean

verifySessionLocalHome

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

Parameters:
session - parsed metadata of the session bean

verifySessionRemote

protected boolean verifySessionRemote(SessionMetaData session)

verifySessionLocal

protected boolean verifySessionLocal(SessionMetaData session)

verifySessionBean

protected boolean verifySessionBean(SessionMetaData session)

verifyMessageDrivenBean

protected boolean verifyMessageDrivenBean(MessageDrivenMetaData mdBean)

verifyServiceEndpoint

protected boolean verifyServiceEndpoint(SessionMetaData session)
Verify Session Bean Service Endpoint

Parameters:
session -
Returns:

hasLegalJAXRPCReturnType

protected boolean hasLegalJAXRPCReturnType(Method method)
Parameters:
method -
Returns:

isJAXRPCType

protected boolean isJAXRPCType(Class class1)
Parameters:
class1 -
Returns:

hasLegalJAXRPCArguments

protected boolean hasLegalJAXRPCArguments(Method method)
Parameters:
method -
Returns:

hasServiceEndpointInterfaces

protected boolean hasServiceEndpointInterfaces(SessionMetaData bean)
Check whether the bean has declared service endpoint interfaces and whether we can load the defined classes

Parameters:
bean -
Returns:
true if everything went alright


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.