Interface ContainerActivator

  • All Known Implementing Classes:
    ApplicationLoader, TestDriver

    public interface ContainerActivator

    This interface defines the API for changing the active Container of a jDISC application. An instance of this class is typically injected into the Application constructor. If injection is unavailable due to an Application design, an instance of this class is also available as an OSGi service under the full ContainerActivator class name.

    This interface allows one to create and active a new Container. To do so, one has to 1) call newContainerBuilder(), 2) configure the returned ContainerBuilder, and 3) pass the builder to the activateContainer(ContainerBuilder) method.

    Author:
    Simon Thoresen Hult
    • Method Detail

      • newContainerBuilder

        ContainerBuilder newContainerBuilder()
        This method creates and returns a new ContainerBuilder object that has the necessary references to the application and its internal components.
        Returns:
        The created builder.