Simply extends
TargetObject so we have a different object to put configuration attributes against. There
is no different behaviour. We have to define each method so that Class.getMethod(methodName, args)
returns a Method referencing this class rather than the parent class.
We need to implement ITargetObject again because the MethodDefinitionAttributes
only locates attributes on interfaces explicitly defined by the intercepted class (not the interfaces defined by
its parent class or classes).
author: Ben Alex version: $Id: OtherTargetObject.java 1496 2006-05-23 13:38:33Z benalex $ |