Package org.pf4j

Enum PluginState

All Implemented Interfaces:
Serializable, Comparable<PluginState>

public enum PluginState extends Enum<PluginState>
  • Enum Constant Details

    • CREATED

      public static final PluginState CREATED
      The runtime knows the plugin is there. It knows about the plugin path, the plugin descriptor.
    • DISABLED

      public static final PluginState DISABLED
      The plugin cannot be used.
    • RESOLVED

      public static final PluginState RESOLVED
      The plugin is created. All the dependencies are created and resolved. The plugin is ready to be started.
    • STARTED

      public static final PluginState STARTED
      The Plugin.start() has executed. A started plugin may contribute extensions.
    • STOPPED

      public static final PluginState STOPPED
      The Plugin.stop() has executed.
  • Field Details

    • status

      private String status
  • Constructor Details

    • PluginState

      private PluginState(String status)
  • Method Details

    • values

      public static PluginState[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static PluginState valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • equals

      public boolean equals(String status)
    • toString

      public String toString()
      Overrides:
      toString in class Enum<PluginState>
    • parse

      public static PluginState parse(String string)