Interface CDIProvider

All Superinterfaces:
Prioritized

public interface CDIProvider extends Prioritized
Interface implemented by a CDI provider to provide access to the current container
Since:
1.1
Author:
Pete Muir
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The default value for getPriority()
  • Method Summary

    Modifier and Type
    Method
    Description
    Provides access to the current container
    default int
    Returns the priority for this SPI element.
  • Field Details

  • Method Details

    • getCDI

      CDI<Object> getCDI()
      Provides access to the current container
      Returns:
      the CDI instance for the current container
      Throws:
      IllegalStateException - if no CDI container is available
    • getPriority

      default int getPriority()
      Description copied from interface: Prioritized

      Returns the priority for this SPI element.

      Specified by:
      getPriority in interface Prioritized
      Returns:
      the priority value