org.springframework.config.java.naming
Enum MethodNameStrategy.Prefix

java.lang.Object
  extended by java.lang.Enum<MethodNameStrategy.Prefix>
      extended by org.springframework.config.java.naming.MethodNameStrategy.Prefix
All Implemented Interfaces:
Serializable, Comparable<MethodNameStrategy.Prefix>
Enclosing class:
MethodNameStrategy

public static enum MethodNameStrategy.Prefix
extends Enum<MethodNameStrategy.Prefix>

Naming prefix.

Author:
Costin Leau

Enum Constant Summary
CLASS
          The declaring class short name is used as prefix (i.e.
FQN
          The FQN of the method will be used (i.e.
NONE
          No prefix is used (i.e.
 
Method Summary
 int value()
           
static MethodNameStrategy.Prefix valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MethodNameStrategy.Prefix[] 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

NONE

public static final MethodNameStrategy.Prefix NONE
No prefix is used (i.e. someMethod)


CLASS

public static final MethodNameStrategy.Prefix CLASS
The declaring class short name is used as prefix (i.e. SomeClass.someMethod)


FQN

public static final MethodNameStrategy.Prefix FQN
The FQN of the method will be used (i.e. my.package.SomeClass.someMethod)

Method Detail

values

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

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

valueOf

public static MethodNameStrategy.Prefix 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

value

public int value()


Copyright � 2005-2008 Spring Framework. All Rights Reserved.