1
2
3
4
5
6
7
8
9
10
11
12
13
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
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 }