001 /* 002 * (c) 2009, 2010 ThoughtWorks Ltd 003 * All rights reserved. 004 * 005 * The software in this package is published under the terms of the BSD 006 * style license a copy of which has been included with this distribution in 007 * the LICENSE.txt file. 008 * 009 * Created on 19-Aug-2009 010 */ 011 package com.thoughtworks.proxy.toys.delegate; 012 013 /** 014 * Indicates the preferred way to delegate to created proxies. 015 * 016 * @author Paul Hammant 017 * @author Jörg Schaible 018 * @since 1.0 019 */ 020 public enum DelegationMode { 021 /** 022 * The delegate must directly implement the methods interface. 023 * 024 * @since 1.0 025 */ 026 DIRECT, 027 028 /** 029 * The delegate must have a method with the same name and matching signature. 030 * 031 * @since 1.0 032 */ 033 SIGNATURE 034 }