Interface SeContainer

  • All Superinterfaces:
    java.lang.AutoCloseable, Instance<java.lang.Object>, java.lang.Iterable<java.lang.Object>, Provider<java.lang.Object>

    public interface SeContainer
    extends Instance<java.lang.Object>, java.lang.AutoCloseable
    Provides access to the current container in Java SE.

    SeContainer implements Instance and therefore might be used to perform programmatic lookup. If no qualifier is passed to method, the @Default qualifier is assumed.

    • Method Detail

      • close

        void close​()

        Shuts down this SeContainer instance when it is no longer in scope. Implemented from AutoCloseable,

        Specified by:
        close in interface java.lang.AutoCloseable
        java.lang.IllegalStateException - if the container is already shutdown
      • isRunning

        boolean isRunning​()
        Check if the container is running or was shut down
        true if called before container shutdown
      • getBeanManager

        BeanManager getBeanManager​()
        Get the CDI BeanManager for this container
        the BeanManager
        java.lang.IllegalStateException - if called when the container is already shutdown