com.puppycrawl.tools.checkstyle.checks.j2ee
Class SessionBeanCheck
java.lang.Object
com.puppycrawl.tools.checkstyle.api.AutomaticBean
com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
com.puppycrawl.tools.checkstyle.api.Check
com.puppycrawl.tools.checkstyle.checks.j2ee.AbstractJ2eeCheck
com.puppycrawl.tools.checkstyle.checks.j2ee.AbstractBeanCheck
com.puppycrawl.tools.checkstyle.checks.j2ee.SessionBeanCheck
- All Implemented Interfaces:
- Configurable, Contextualizable
- public class SessionBeanCheck
- extends AbstractBeanCheck
Checks that a SessionBean implementation satisfies SessionBean
requirements. Such as:
- The class is defined as
public
.
- The class cannot be defined as
final
.
- It implements one or more
ejbCreate
methods.
- It contains a
public
constructor with no parameters.
- It must not define the
finalize
method.
Reference: Enterprise JavaBeansTM Specification,Version 2.0, section 7.10.2.
- Author:
- Rick Giles
Methods inherited from class com.puppycrawl.tools.checkstyle.api.Check |
beginTree, destroy, finishTree, getAcceptableTokens, getClassLoader, getFileContents, getLines, getTabWidth, getTokenNames, init, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens |
Methods inherited from class com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter |
getId, getMessageBundle, getSeverity, getSeverityLevel, log, log, log, log, log, log, log, log, log, setId, setSeverity |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SessionBeanCheck
public SessionBeanCheck()
- Constructs a
SessionBeanCheck
.
visitToken
public void visitToken(DetailAST aAST)
- Called to process a token.
- Overrides:
visitToken
in class Check
- Parameters:
aAST
- the token to process