org.glassfish.jersey.server.spi.internal
Enum ValueFactoryProvider.Priority

java.lang.Object
  extended by java.lang.Enum<ValueFactoryProvider.Priority>
      extended by org.glassfish.jersey.server.spi.internal.ValueFactoryProvider.Priority
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ValueFactoryProvider.Priority>, ValueFactoryProvider.PriorityType
Enclosing interface:
ValueFactoryProvider

public static enum ValueFactoryProvider.Priority
extends java.lang.Enum<ValueFactoryProvider.Priority>
implements ValueFactoryProvider.PriorityType

Enumeration of priorities for providers (e.g. ValueFactoryProvider). At first providers with the HIGH priority are examined then those with NORMAL priority and at last the ones with the LOW priority.


Enum Constant Summary
HIGH
           
LOW
           
NORMAL
           
 
Method Summary
 int getWeight()
          Returns the weight of this priority.
static ValueFactoryProvider.Priority valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ValueFactoryProvider.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

LOW

public static final ValueFactoryProvider.Priority LOW

NORMAL

public static final ValueFactoryProvider.Priority NORMAL

HIGH

public static final ValueFactoryProvider.Priority HIGH
Method Detail

values

public static ValueFactoryProvider.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 (ValueFactoryProvider.Priority c : ValueFactoryProvider.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 ValueFactoryProvider.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

getWeight

public int getWeight()
Description copied from interface: ValueFactoryProvider.PriorityType
Returns the weight of this priority.

Specified by:
getWeight in interface ValueFactoryProvider.PriorityType
Returns:
weight of this priority.


Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.