接口 JarMode


public interface JarMode
Interface registered in spring.factories to provides extended 'jarmode' support.
从以下版本开始:
2.3.0
作者:
Phillip Webb
  • 方法概要

    修饰符和类型
    方法
    说明
    boolean
    Returns if this accepts and can run the given mode.
    void
    run(String mode, String[] args)
    Run the jar in the given mode.
  • 方法详细资料

    • accepts

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

      void run(String mode, String[] args) throws JarModeErrorException
      Run the jar in the given mode.
      参数:
      mode - the mode to use
      args - any program arguments
      抛出:
      JarModeErrorException - on an error that should print a simple error message