Interface BeanArchiveHandler

All Known Implementing Classes:
FileSystemBeanArchiveHandler, JandexFileSystemBeanArchiveHandler, JandexIndexBeanArchiveHandler

public interface BeanArchiveHandler
Handles the reference to a bean archive.

The standard way to register a handler is via DiscoveryStrategy.registerHandler(BeanArchiveHandler). Alternatively, handlers may be registered using the ServiceLoader mechanism.

Additionaly, handlers could specify their priority using jakarta.annotation.Priority. Handlers with higher priority have precedence. The default priority is 0. Handlers registered programatically have the default priority registeredHandlers.size - index, i.e. derived from the order they were inserted.

Author:
Martin Kouba
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    handle(String beanArchiveReference)
    The returned builder must only contain a complete set of found classes, other properties do not have to be set.
  • Method Details

    • handle

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