aokell.lib.interf
Class DelegatorForImplementedInterface

java.lang.Object
  extended by aokell.lib.interf.Delegator
      extended by 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

Method Summary
 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.
protected  ClassDefinition generateDelegator(String targetClassname, String delegateClassname)
          Generate a proxy that implements the same interface as a delegate and that extends the InterfaceImpl class.
static DelegatorForImplementedInterface get()
           
 
Methods inherited from class aokell.lib.interf.Delegator
dumpClassToFile, dumpProxies, getClass, registerProxy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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 type
itfOwner - the component associated to the interface
content - the content to which the call must be delegated
isFcInternalInterface - 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