com.thoughtworks.proxy.toys.delegate
Enum DelegationMode

java.lang.Object
  extended by java.lang.Enum<DelegationMode>
      extended by com.thoughtworks.proxy.toys.delegate.DelegationMode
All Implemented Interfaces:
Serializable, Comparable<DelegationMode>

public enum DelegationMode
extends Enum<DelegationMode>

Indicates the preferred way to delegate to created proxies.

Since:
1.0
Author:
Paul Hammant, Jörg Schaible

Enum Constant Summary
DIRECT
          The delegate must directly implement the methods interface.
SIGNATURE
          The delegate must have a method with the same name and matching signature.
 
Method Summary
static DelegationMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DelegationMode[] 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

DIRECT

public static final DelegationMode DIRECT
The delegate must directly implement the methods interface.

Since:
1.0

SIGNATURE

public static final DelegationMode SIGNATURE
The delegate must have a method with the same name and matching signature.

Since:
1.0
Method Detail

values

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

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

valueOf

public static DelegationMode 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 © 2005-2010 Codehaus. All Rights Reserved.