com.puppycrawl.tools.checkstyle.checks.j2ee

Class EntityBeanMethodChecker

Known Direct Subclasses:
BeanManagedMethodChecker, ContainerManagedMethodChecker

public class EntityBeanMethodChecker
extends BeanMethodChecker

Root class for entity bean method checks.
Author:
Rick Giles

Constructor Summary

EntityBeanMethodChecker(EntityBeanCheck aCheck)
Constructs a EntityBeanMethodChecker for a bean check.

Method Summary

protected void
checkCreateMatch()
Checks that every ejbCreate method has a matching ejbPostCreate method.
protected void
checkCreateMethod(DetailAST aMethodAST)
protected void
checkHomeMethod(DetailAST aMethodAST)
Checks whether an ejbHome<METHOD>(...) method of an entity bean satisfies requirements.
void
checkMethod(DetailAST aMethodAST)
void
checkMethods(DetailAST aAST)
protected void
checkPostCreateMethod(DetailAST aMethodAST)
Checks whether an ejbPostCreate<METHOD>(...) method of an entity bean satisfies requirements.

Methods inherited from class com.puppycrawl.tools.checkstyle.checks.j2ee.BeanMethodChecker

checkCreateMethod, checkMethod

Methods inherited from class com.puppycrawl.tools.checkstyle.checks.j2ee.MethodChecker

checkMethod, checkMethod, checkMethods, checkNotThrows, checkThrows, getCheck, log, logName

Constructor Details

EntityBeanMethodChecker

public EntityBeanMethodChecker(EntityBeanCheck aCheck)
Constructs a EntityBeanMethodChecker for a bean check.
Parameters:
aCheck - the bean check.

Method Details

checkCreateMatch

protected void checkCreateMatch()
Checks that every ejbCreate method has a matching ejbPostCreate method.

checkCreateMethod

protected void checkCreateMethod(DetailAST aMethodAST)
Overrides:
checkCreateMethod in interface BeanMethodChecker

checkHomeMethod

protected void checkHomeMethod(DetailAST aMethodAST)
Checks whether an ejbHome<METHOD>(...) method of an entity bean satisfies requirements.
Parameters:
aMethodAST - the AST for the method definition.

checkMethod

public void checkMethod(DetailAST aMethodAST)
Overrides:
checkMethod in interface BeanMethodChecker

checkMethods

public void checkMethods(DetailAST aAST)
Overrides:
checkMethods in interface MethodChecker

checkPostCreateMethod

protected void checkPostCreateMethod(DetailAST aMethodAST)
Checks whether an ejbPostCreate<METHOD>(...) method of an entity bean satisfies requirements.
Parameters:
aMethodAST - the AST for the method definition.