Class ServletContextBeanArchiveHandler

  • All Implemented Interfaces:
    BeanArchiveHandler
    Direct Known Subclasses:
    JandexServletContextBeanArchiveHandler

    public class ServletContextBeanArchiveHandler
    extends Object
    implements BeanArchiveHandler
    Handles the paths to resources within a web application if a WAR archive is not extracted to the file system.

    For WEB-INF/classes, ServletContext.getResourcePaths(String) is used. For libraries, only war protocol is supported.

    Author:
    Martin Kouba, Thomas Meyer
    • Constructor Detail

      • ServletContextBeanArchiveHandler

        public ServletContextBeanArchiveHandler​(javax.servlet.ServletContext servletContext)
        Parameters:
        servletContext -
    • Method Detail

      • 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