net.sf.sasl.aop.distributed.lock.annotation.mutex
Enum DistributedDynamicMutexLockKey.LockKeySelectorType

java.lang.Object
  extended by java.lang.Enum<DistributedDynamicMutexLockKey.LockKeySelectorType>
      extended by net.sf.sasl.aop.distributed.lock.annotation.mutex.DistributedDynamicMutexLockKey.LockKeySelectorType
All Implemented Interfaces:
Serializable, Comparable<DistributedDynamicMutexLockKey.LockKeySelectorType>
Enclosing class:
DistributedDynamicMutexLockKey

public static enum DistributedDynamicMutexLockKey.LockKeySelectorType
extends Enum<DistributedDynamicMutexLockKey.LockKeySelectorType>


Enum Constant Summary
ATTRIBUTE
          The lock key selector path string will be interpreted as attribute path.
NONE
          Ignores lock key selector path for selecting nested values as a lock key.
 
Method Summary
static DistributedDynamicMutexLockKey.LockKeySelectorType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DistributedDynamicMutexLockKey.LockKeySelectorType[] 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

ATTRIBUTE

public static final DistributedDynamicMutexLockKey.LockKeySelectorType ATTRIBUTE
The lock key selector path string will be interpreted as attribute path. Each attribute is separated by a ".".
For example "customer.customerId" will select the customer id, if the parameter type is a complex class with an instance variable of name customer or has got a getCustomer() method.


NONE

public static final DistributedDynamicMutexLockKey.LockKeySelectorType NONE
Ignores lock key selector path for selecting nested values as a lock key. The toString() method will be direct invoked on the parameter to get the key to lock.

Method Detail

values

public static DistributedDynamicMutexLockKey.LockKeySelectorType[] 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 (DistributedDynamicMutexLockKey.LockKeySelectorType c : DistributedDynamicMutexLockKey.LockKeySelectorType.values())
    System.out.println(c);

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

valueOf

public static DistributedDynamicMutexLockKey.LockKeySelectorType 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


Copyright © 2010. All Rights Reserved.