Enum PluginListener.Priority

java.lang.Object
  extended by java.lang.Enum<PluginListener.Priority>
      extended by PluginListener.Priority
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PluginListener.Priority>
Enclosing class:
PluginListener

public static enum PluginListener.Priority
extends java.lang.Enum<PluginListener.Priority>

Priority - Used for priority for plugin listeners


Enum Constant Summary
Enum Constant and Description
CRITICAL
          Highly critical for hooks that absolutely must occur before any others.
HIGH
          May block/interrupt/undo the action, but prefer MEDIUM
LOW
          Must not block/interrupt/undo the action
MEDIUM
          Preferred priority for blocking/interrupting/undoing the action
 
Method Summary
Modifier and Type Method and Description
static PluginListener.Priority valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PluginListener.Priority[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CRITICAL

public static final PluginListener.Priority CRITICAL
Highly critical for hooks that absolutely must occur before any others. Use carefully.


HIGH

public static final PluginListener.Priority HIGH
May block/interrupt/undo the action, but prefer MEDIUM


MEDIUM

public static final PluginListener.Priority MEDIUM
Preferred priority for blocking/interrupting/undoing the action


LOW

public static final PluginListener.Priority LOW
Must not block/interrupt/undo the action

Method Detail

values

public static PluginListener.Priority[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (PluginListener.Priority c : PluginListener.Priority.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PluginListener.Priority valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null