org.openejb.alt.config.rules
Class CheckMethods

java.lang.Object
  extended by org.openejb.alt.config.rules.CheckMethods
All Implemented Interfaces:
ValidationRule

public class CheckMethods
extends java.lang.Object
implements ValidationRule

Author:
David Blevins

Constructor Summary
CheckMethods()
           
 
Method Summary
 boolean check_createMethodsAreImplemented(Bean b, java.lang.Class bean, java.lang.Class home)
          Create methods must me implemented
 boolean check_hasCreateMethod(Bean b, java.lang.Class bean, java.lang.Class home)
          Must have at least one create method in the home interface.
 boolean check_postCreateMethodsAreImplemented(Bean b, java.lang.Class bean, java.lang.Class home)
          Validate that the ejbPostCreate methods of entity beans are implemented in the bean class
 boolean check_unusedCreateMethods(Bean b, java.lang.Class bean, java.lang.Class home)
          Check for any create methods in the bean that aren't in the home interface as well
 void validate(EjbSet set)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckMethods

public CheckMethods()
Method Detail

validate

public void validate(EjbSet set)
Specified by:
validate in interface ValidationRule

check_hasCreateMethod

public boolean check_hasCreateMethod(Bean b,
                                     java.lang.Class bean,
                                     java.lang.Class home)
Must have at least one create method in the home interface.

Parameters:
b -
bean -
home -

check_createMethodsAreImplemented

public boolean check_createMethodsAreImplemented(Bean b,
                                                 java.lang.Class bean,
                                                 java.lang.Class home)
Create methods must me implemented

Parameters:
b -
bean -
home -
Returns:
boolean

check_postCreateMethodsAreImplemented

public boolean check_postCreateMethodsAreImplemented(Bean b,
                                                     java.lang.Class bean,
                                                     java.lang.Class home)
Validate that the ejbPostCreate methods of entity beans are implemented in the bean class

Parameters:
b -
bean -
home -
Returns:
boolean

check_unusedCreateMethods

public boolean check_unusedCreateMethods(Bean b,
                                         java.lang.Class bean,
                                         java.lang.Class home)
Check for any create methods in the bean that aren't in the home interface as well

Parameters:
b -
bean -
home -
Returns:
boolean


Copyright © 1999-2011 OpenEJB. All Rights Reserved.