Package com.tick42.glue.desktop.applications

# Interface ApplicationInstance

All Superinterfaces:
  `AsynchronousCloseable`, `AutoCloseable`

    public interface ApplicationInstance
    extends AsynchronousCloseable

Represents possibly running application instance. Running instance can be stopped via `AsynchronousCloseable.close()` or `AsynchronousCloseable.closeAsync()`.

- ## Method Summary

  Modifier and Type | Method | Description
  --- | --- | ---
  `Map<String,​Object>` | `getConfiguration()` | Returns the application configuration at the time application is started.
  `String` | `getId()` | Returns the application instance id.
  `Optional<Instance>` | `getInstance()` | Returns an `Optional` that contains the interop `Instance` for this application instance.
  `String` | `getName()` | Returns the application name.

  ### Methods inherited from interface com.tick42.glue.core.AsynchronousCloseable

  `close, closeAsync, onClose`

- ## Method Details

  - ### getName

    String getName()
    Returns the application name.
    Returns:
      application name, never `null`

  - ### getConfiguration

    Map<String,​Object> getConfiguration()
    Returns the application configuration at the time application is started.
    Returns:
      application configuration, never `null`

  - ### getId

    String getId()
    Returns the application instance id.
    Returns:
      The application instance id, never `null`
    Since:
      1.3.7

  - ### getInstance

    Optional<Instance> getInstance()
    Returns an `Optional` that contains the interop `Instance` for this application instance.
    Returns:
      An `Optional` that contains the interop `Instance`, never `null`
    Since:
      1.4.2