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

Field Summary
(package private)  EjbSet set
           
 
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
 

Field Detail

set

EjbSet set
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:
 

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:
 


Copyright © 2002 OpenEJB Group. All Rights Reserved. http://openejb.sourceforge.net