01: /* Copyright 2004, 2005, 2006 Acegi Technology Pty Limited
02: *
03: * Licensed under the Apache License, Version 2.0 (the "License");
04: * you may not use this file except in compliance with the License.
05: * You may obtain a copy of the License at
06: *
07: * http://www.apache.org/licenses/LICENSE-2.0
08: *
09: * 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 configuration attributes against.<P>There
20: * is no different behaviour. We have to define each method so that <code>Class.getMethod(methodName, args)</code>
21: * returns a <code>Method</code> referencing this class rather than the parent class.</p>
22: * <P>We need to implement <code>ITargetObject</code> again because the <code>MethodDefinitionAttributes</code>
23: * only locates attributes on interfaces explicitly defined by the intercepted class (not the interfaces defined by
24: * its parent class or classes).</p>
25: *
26: * @author Ben Alex
27: * @version $Id: OtherTargetObject.java 1496 2006-05-23 13:38:33Z benalex $
28: */
29: public class OtherTargetObject extends TargetObject implements
30: ITargetObject {
31: //~ Methods ========================================================================================================
32:
33: public int countLength(String input) {
34: return super .countLength(input);
35: }
36:
37: public String makeLowerCase(String input) {
38: return super .makeLowerCase(input);
39: }
40:
41: public String makeUpperCase(String input) {
42: return super .makeUpperCase(input);
43: }
44:
45: public String publicMakeLowerCase(String input) {
46: return super.publicMakeLowerCase(input);
47: }
48: }
|