Class JandexIndexBeanArchiveHandler

java.lang.Object
org.jboss.weld.environment.deployment.discovery.jandex.JandexIndexBeanArchiveHandler
All Implemented Interfaces:
BeanArchiveHandler

public class JandexIndexBeanArchiveHandler extends Object implements BeanArchiveHandler
This class uses an existing Jandex-Index ("META-INF/jandex.idx") to scan the bean archive. If no index is available the handle(String) method will return null.

The class is not thread-safe and should only be used by a single thread.

Author:
Stefan Großmann
  • Constructor Details

    • JandexIndexBeanArchiveHandler

      public JandexIndexBeanArchiveHandler()
  • Method Details

    • handle

      public BeanArchiveBuilder handle(String path)
      Description copied from interface: BeanArchiveHandler
      The returned builder must only contain a complete set of found classes, other properties do not have to be set.
      Specified by:
      handle in interface BeanArchiveHandler
      Parameters:
      path - A reference to a bean archive (e.g. file path)
      Returns:
      the BeanArchiveBuilder or null if the reference cannot be handled