Package org.jboss.as.ejb3.util
Class EjbValidationsUtil
java.lang.Object
org.jboss.as.ejb3.util.EjbValidationsUtil
- Author:
- Romain Pelisse - romain@redhat.com
-
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<MdbValidityStatus>assertEjbClassValidity(org.jboss.jandex.ClassInfo mdbClass) Verifies that the passedmdbClassmeets the requirements set by the Enterprise Beans 3 spec about bean implementation classes.static voidverifyEjbClassAndDefaultConstructor(Constructor<?> ctor, Class<?> enclosingClass, boolean noInterface, String componentName, String componentClassname, int modifiers) static booleanverifyEjbPublicMethodAreNotFinalNorStatic(Method[] methods, String classname) static booleanverifyMethodIsNotFinalNorStatic(Method method, String classname)
-
Method Details
-
assertEjbClassValidity
public static Collection<MdbValidityStatus> assertEjbClassValidity(org.jboss.jandex.ClassInfo mdbClass) Verifies that the passedmdbClassmeets the requirements set by the Enterprise Beans 3 spec about bean implementation classes. The passedmdbClassmust not be an interface and must be public and not final and not abstract. If it fails any of these requirements then one of theMdbValidityStatusvalue is added to the returned collection. An empty collection is returned if no violation is found.- Parameters:
mdbClass- The MDB class- Returns:
- a collection of violations represented by
MdbValidityStatus
-
verifyEjbClassAndDefaultConstructor
public static void verifyEjbClassAndDefaultConstructor(Constructor<?> ctor, Class<?> enclosingClass, boolean noInterface, String componentName, String componentClassname, int modifiers) throws org.jboss.as.server.deployment.DeploymentUnitProcessingException - Throws:
org.jboss.as.server.deployment.DeploymentUnitProcessingException
-
verifyEjbPublicMethodAreNotFinalNorStatic
-
verifyMethodIsNotFinalNorStatic
-