aokell.lib.interf
Class DelegatorForImplementedInterface
java.lang.Object
aokell.lib.interf.Delegator
aokell.lib.interf.DelegatorForImplementedInterface
public class DelegatorForImplementedInterface
- extends Delegator
This class generates Interface implementations for components which
implement directly the interface. This is typically the case of server
interfaces associated to primitive components where the content implements
the interface. In such a case, calls to the Interface are delegated to the
content.
- Author:
- Lionel Seinturier
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
get
public static DelegatorForImplementedInterface get()
generate
public Object generate(InterfaceType it,
Component itfOwner,
Object content,
boolean isFcInternalInterface)
- Generate and instantiate a proxy which implements the same interface as a
delegate and that extends the InterfaceImpl class.
- Overrides:
generate
in class Delegator
- Parameters:
it
- the interface typeitfOwner
- the component associated to the interfacecontent
- the content to which the call must be delegatedisFcInternalInterface
- true if the generated proxy is an internal interface
- Returns:
- the proxy
generateDelegator
protected ClassDefinition generateDelegator(String targetClassname,
String delegateClassname)
- Generate a proxy that implements the same interface as a delegate and
that extends the InterfaceImpl class.
- Specified by:
generateDelegator
in class Delegator