Class EjbValidationsUtil


  • public final class EjbValidationsUtil
    extends Object
    Author:
    Romain Pelisse - romain@redhat.com
    • Method Detail

      • assertEjbClassValidity

        public static Collection<MdbValidityStatus> assertEjbClassValidity​(org.jboss.jandex.ClassInfo mdbClass)
        Verifies that the passed mdbClass meets the requirements set by the Enterprise Beans 3 spec about bean implementation classes. The passed mdbClass must not be an interface and must be public and not final and not abstract. If it fails any of these requirements then one of the MdbValidityStatus value 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

        public static boolean verifyEjbPublicMethodAreNotFinalNorStatic​(Method[] methods,
                                                                        String classname)
      • verifyMethodIsNotFinalNorStatic

        public static boolean verifyMethodIsNotFinalNorStatic​(Method method,
                                                              String classname)