Interface ApplicationContainer

All Known Implementing Classes:
AbstractApplicationContainer, EmbeddedCargoApplicationContainer, GlassfishContainer, InstalledCargoApplicationContainer, InVmContainer, JavaSeContainer, LocalApplicationContainer, RemoteCargoApplicationContainer

public interface ApplicationContainer
Represents a place that runs services.

This object needs to be multi-thread safe.

Author:
Kohsuke Kawaguchi
  • Method Summary

    Modifier and Type
    Method
    Description
    Starts a service inside a container, making it ready to process requests.
    Returns the transport that this container uses for testing.
    Returns the unsupported uses for this container.
    void
    Stops the container.
    void
    Starts the container.
  • Method Details

    • getTransport

      String getTransport()
      Returns the transport that this container uses for testing.
      Returns:
      For example, "http", "local", "tcp", "jms", etc. It should match the scheme portion of the endpoint address URI. Never null. This value is compared in the descriptor's transport declaration to decide wheter to run a test or not.
    • getUnsupportedUses

      @NotNull Set<String> getUnsupportedUses()
      Returns the unsupported uses for this container. For e.g lwhs container may return "servlet" as an unsupported "use"
      Returns:
      unsupported uses like "servlet", "nonapi" etc the returned value is compared againt descriptor's "uses" decl to decide wheter to run a test or not.
    • start

      void start() throws Exception
      Starts the container. This is invoked at the very beginning before any service is deployed.
      Throws:
      Exception
    • deploy

      @NotNull Application deploy(DeployedService service) throws Exception
      Starts a service inside a container, making it ready to process requests.
      Throws:
      Exception
    • shutdown

      void shutdown() throws Exception
      Stops the container. This is invoked at the end to clean up any resources.
      Throws:
      Exception