Interface JarMode


public interface JarMode
Interface registered in spring.factories to provides extended 'jarmode' support.
Since:
2.3.0
Author:
Phillip Webb
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns if this accepts and can run the given mode.
    void
    run(String mode, String[] args)
    Run the jar in the given mode.
  • Method Details

    • accepts

      boolean accepts(String mode)
      Returns if this accepts and can run the given mode.
      Parameters:
      mode - the mode to check
      Returns:
      if this instance accepts the mode
    • run

      void run(String mode, String[] args)
      Run the jar in the given mode.
      Parameters:
      mode - the mode to use
      args - any program arguments