Package org.jboss.as.ejb3.util
Class EjbValidationsUtil
- java.lang.Object
-
- org.jboss.as.ejb3.util.EjbValidationsUtil
-
public final class EjbValidationsUtil extends Object
- Author:
- Romain Pelisse - romain@redhat.com
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Collection<MdbValidityStatus>assertEjbClassValidity(org.jboss.jandex.ClassInfo mdbClass)Returns true if the passedmdbClassmeets the requirements set by the Enterprise Beans 3 spec about bean implementation classes.static List<Method>getBusinessMethods(Class<?> componentClass)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 Detail
-
assertEjbClassValidity
public static Collection<MdbValidityStatus> assertEjbClassValidity(org.jboss.jandex.ClassInfo mdbClass) throws org.jboss.as.server.deployment.DeploymentUnitProcessingException
Returns true if 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 passes these requirements then this method returns true. Else it returns false.- Parameters:
mdbClass- The MDB class- Returns:
- Throws:
org.jboss.as.server.deployment.DeploymentUnitProcessingException
-
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
public static boolean verifyEjbPublicMethodAreNotFinalNorStatic(Method[] methods, String classname)
-
verifyMethodIsNotFinalNorStatic
public static boolean verifyMethodIsNotFinalNorStatic(Method method, String classname)
-
-