aokell.lib.asm
Class ASMGeneratorForImplementedInterface

java.lang.Object
  extended by aokell.lib.asm.ASMGeneratorForImplementedInterface

public class ASMGeneratorForImplementedInterface
extends Object

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

Constructor Summary
ASMGeneratorForImplementedInterface()
           
 
Method Summary
 ClassDefinition generateDelegator(String targetClassname, String delegateClassname)
          Generate an Interface implementation by extending InterfaceImpl.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASMGeneratorForImplementedInterface

public ASMGeneratorForImplementedInterface()
Method Detail

generateDelegator

public ClassDefinition generateDelegator(String targetClassname,
                                         String delegateClassname)
Generate an Interface implementation by extending InterfaceImpl.

Parameters:
targetClassname - the name of the generated class
delegateClassname - the name of the class where calls will be delegated
Returns:
the generated class definition (Class and bytecode)