Interface ContainerInstance


public interface ContainerInstance
General marker interface for a running Weld container.
Author:
Jozef Hartinger
  • Method Summary

    Modifier and Type
    Method
    Description
    jakarta.enterprise.inject.spi.BeanManager
    Returns a BeanManager used by this container.
    The identifier of the container
    void
    Shuts down the container.
  • Method Details

    • getBeanManager

      jakarta.enterprise.inject.spi.BeanManager getBeanManager()
      Returns a BeanManager used by this container. If the container uses multiple BeanManager instances it is not defined which of them is returned.
      Returns:
      beanManager
    • getId

      String getId()
      The identifier of the container
      Returns:
      identifier of the container
    • shutdown

      void shutdown()
      Shuts down the container. This action may not be available in every environment.