站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 server API Documentation 英文版文档

EJBVerifier20 (JBoss Server API) - JBoss 3.2.7 server API Documentation 英文版文档


org.jboss.verifier.strategy
Class EJBVerifier20

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

public class EJBVerifier20
extends AbstractVerifier

EJB 2.0 bean verifier.

Since:
JDK 1.3
Version:
$Revision: 1.24.2.9 $
Author:
Juha Lindfors (jplindfo@helsinki.fi), Jay Walters (jwalters@computer.org), Christian Riege

Field Summary
protected  Class bean
           
protected  EJBVerifier11 cmp1XVerifier
           
protected  Class home
           
protected  Class local
           
protected  Class localHome
           
protected  Class remote
           
 
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
EJBVerifier20(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)
          Checks the session
 Iterator getEjbHomeMethods(Class c)
           
 Iterator getEJBRemoveMethods(Class c)
          Returns the ejbRemove(...) methods of a bean
 Iterator getEjbSelectMethods(Class c)
          Return all ejbSelect methods
 Iterator getHomeMethods(Class c)
          Home methods are any method on the home interface which is neither a create or find method.
 boolean hasEJBRemoveMethod(Class c)
          Searches for an instance of an ejbRemove method from the class
protected  boolean hasLocalInterfaces(BeanMetaData bean)
          Check whether the bean has declared local interfaces and whether we can load the defined classes
protected  boolean hasMatchingQuery(Method m, EntityMetaData e)
          Check whether there is a matching <query> Element defined for the Method m
protected  boolean hasRemoteInterfaces(BeanMetaData bean)
          Check whether the bean has declared local interfaces and whether we can load the defined classes
 boolean isCreateMethod(Method m)
          Check whether the given method is a create(...) method
 boolean isEjbCreateMethod(Method m)
           
 boolean isEjbHomeMethod(Method m)
           
 boolean isEjbRemoveMethod(Method m)
           
 boolean isEjbSelectMethod(Method m)
           
protected  boolean verifyBean(BeanMetaData theBean)
          Try to load the beans class declared in the <ejb-class> element.
 
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, 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
 

Field Detail

cmp1XVerifier

protected EJBVerifier11 cmp1XVerifier

bean

protected Class bean

home

protected Class home

remote

protected Class remote

localHome

protected Class localHome

local

protected Class local
Constructor Detail

EJBVerifier20

public EJBVerifier20(VerificationContext context)
Method Detail

checkSession

public void checkSession(SessionMetaData session)
Description copied from interface: VerificationStrategy
Checks the session


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

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

isCreateMethod

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

Specified by:
isCreateMethod in class AbstractVerifier

isEjbCreateMethod

public boolean isEjbCreateMethod(Method m)
Specified by:
isEjbCreateMethod in class AbstractVerifier

isEjbRemoveMethod

public boolean isEjbRemoveMethod(Method m)

isEjbSelectMethod

public boolean isEjbSelectMethod(Method m)

isEjbHomeMethod

public boolean isEjbHomeMethod(Method m)

getEjbSelectMethods

public Iterator getEjbSelectMethods(Class c)
Return all ejbSelect methods


hasEJBRemoveMethod

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


getEJBRemoveMethods

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


getHomeMethods

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


getEjbHomeMethods

public Iterator getEjbHomeMethods(Class c)

hasMatchingQuery

protected boolean hasMatchingQuery(Method m,
                                   EntityMetaData 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.


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