org.jboss.verifier.strategy
Class EJBVerifier11

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

public class EJBVerifier11
extends AbstractVerifier

Concrete implementation of the VerificationStrategy interface. This class implements the verification of both session and entity beans for Enterprise JavaBeans v1.1 specification. For more detailed documentation, refer to the Enterprise JavaBeans v1.1, Final Release

Since:
JDK 1.3
Version:
$Revision: 1.32.6.1 $
Author:
Juha Lindfors, Aaron Mulder (ammulder@alumni.princeton.edu), Vinay Menon (menonv@cpw.co.uk), Thomas.Diesler@jboss.org
See Also:
AbstractVerifier

Field Summary
 
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
EJBVerifier11(VerificationContext context)
          Constructs the verifier object.
 
Method Summary
 void checkEntity(EntityMetaData entity)
          Verifies the entity bean class, home interface, remote interface and primary key class against the EJB 1.1 specification.
 void checkSession(SessionMetaData session)
          Verifies the session bean class, home interface and remote interface against the EJB 1.1 specification.
 String getMessageBundle()
           
 boolean isCreateMethod(Method m)
           
 boolean isEjbCreateMethod(Method m)
           
 
Methods inherited from class org.jboss.verifier.strategy.AbstractVerifier
checkMessageBean, 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

EJBVerifier11

public EJBVerifier11(VerificationContext context)
Constructs the verifier object.

Parameters:
context - context for application information
Method Detail

getMessageBundle

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

checkSession

public void checkSession(SessionMetaData session)
Verifies the session bean class, home interface and remote interface against the EJB 1.1 specification.

Parameters:
session - XML metadata of the session bean

checkEntity

public void checkEntity(EntityMetaData entity)
Verifies the entity bean class, home interface, remote interface and primary key class against the EJB 1.1 specification.

Parameters:
entity - XML metadata of the session bean

isCreateMethod

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

isEjbCreateMethod

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


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