org.openejb.alt.config.rules
Class CheckMethods
java.lang.Object
|
+--org.openejb.alt.config.rules.CheckMethods
- All Implemented Interfaces:
- ValidationRule
- public class CheckMethods
- extends java.lang.Object
- implements ValidationRule
- Author:
- David Blevins
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
set
EjbSet set
CheckMethods
public CheckMethods()
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:
-
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:
-
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:
-