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)
                                                                    throws org.jboss.as.server.deployment.DeploymentUnitProcessingException
        Returns true if 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 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)
      • getBusinessMethods

        public static List<Method> getBusinessMethods​(Class<?> componentClass)