4 Replies Latest reply on Feb 19, 2015 7:12 AM by Emily Jiang

    Implicit bean archive

    Emily Jiang Newbie

      For any implicit bean archive, the api javadoc is not clear about the return of getBeanClasses() on BeanDeploymentArchive interface

      /**

           * Gets all classes in the bean deployment archive

           *

           * @return the classes, empty if no classes are present

           */

          Collection<String> getBeanClasses();

      Does the collection<String> getBeanClasses() only contain

      1)the bean classes? In this case, I need to scan the archive and find out the set of beans in the archive and then create DeploymentBeanArchive object with just these set of bean classes

      or

      2)every class in this archive if a bean defining annotation is found? In this case, I need to scan the archive and stop once I have found a bean defining annotation.

       

      Please confirm.

      Thanks

      Emily