Interface J7mApplication


public interface J7mApplication
Managed J7M application lifecycle contract.

Implementations are instantiated by the application manager after bundle verification. Lifecycle failures are wrapped in the middleware error model by deployer implementations. Applications should release owned resources in stop(ApplicationContext) and make drain(ApplicationContext) idempotent.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Stops accepting new work before shutdown.
    void
    Initializes the application before services are exported.
    void
    Starts the application after declared services are exported.
    void
    Stops the application and releases application-owned resources.
  • Method Details

    • initialize

      void initialize(ApplicationContext context)
      Initializes the application before services are exported.
      Parameters:
      context - safe application context
    • start

      void start(ApplicationContext context)
      Starts the application after declared services are exported.
      Parameters:
      context - safe application context
    • drain

      void drain(ApplicationContext context)
      Stops accepting new work before shutdown.
      Parameters:
      context - safe application context
    • stop

      void stop(ApplicationContext context)
      Stops the application and releases application-owned resources.
      Parameters:
      context - safe application context