    1   /* Copyright 2004 Acegi Technology Pty Limited
    2    *
    3    * Licensed under the Apache License, Version 2.0 (the "License");
    4    * you may not use this file except in compliance with the License.
    5    * You may obtain a copy of the License at
    6    *
    7    *     http://www.apache.org/licenses/LICENSE-2.0
    8    *
    9    * Unless required by applicable law or agreed to in writing, software
    10   * distributed under the License is distributed on an "AS IS" BASIS,
    11   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12   * See the License for the specific language governing permissions and
    13   * limitations under the License.
    14   */
    15
    16  package org.acegisecurity;
    17
    18  /***
    19   * Simply extends {@link TargetObject} so we have a different object to put
    20   * configuration attributes against.
    21   *
    22   * <P>
    23   * There is no different behaviour. We have to define each method so that
    24   * <code>Class.getMethod(methodName, args)</code> returns a
    25   * <code>Method</code> referencing this class rather than the parent class.
    26   * </p>
    27   *
    28   * <P>
    29   * We need to implement <code>ITargetObject</code> again because the
    30   * <code>MethodDefinitionAttributes</code> only locates attributes on
    31   * interfaces explicitly defined by the intercepted class (not the interfaces
    32   * defined by its parent class or classes).
    33   * </p>
    34   *
    35   * @author Ben Alex
    36   * @version $Id: OtherTargetObject.java,v 1.2 2005/11/17 00:55:47 benalex Exp $
    37   */
    38  public class OtherTargetObject extends TargetObject implements ITargetObject {
    39      //~ Methods ================================================================
    40
    41      public int countLength(String input) {
    42          return super.countLength(input);
    43      }
    44
    45      public String makeLowerCase(String input) {
    46          return super.makeLowerCase(input);
    47      }
    48
    49      public String makeUpperCase(String input) {
    50          return super.makeUpperCase(input);
    51      }
    52
    53      public String publicMakeLowerCase(String input) {
    54          return super.publicMakeLowerCase(input);
    55      }
    56  }