org.iqual.chaplin
Enum CachingMode

java.lang.Object
  extended by java.lang.Enum<CachingMode>
      extended by org.iqual.chaplin.CachingMode
All Implemented Interfaces:
Serializable, Comparable<CachingMode>

public enum CachingMode
extends Enum<CachingMode>

This enumeration is used in the @{link FromContext} annotation to indicate the caching mode of the value after it has been obtained.

Since:
22.11.2009 18:54:16
Author:
Zbynek Slajchrt
See Also:
Var, FromContext

Enum Constant Summary
global
          The value is not cached either.
local
          The value is cached as a local variable.
thread
          The value is cached as a thread local variable.
 
Method Summary
static CachingMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CachingMode[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

global

public static final CachingMode global
The value is not cached either.


thread

public static final CachingMode thread
The value is cached as a thread local variable.


local

public static final CachingMode local
The value is cached as a local variable.

Method Detail

values

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

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

valueOf

public static CachingMode 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


Copyright © 2009 iquality.org. All Rights Reserved.