aokell.lib.asm
Class ASMGeneratorForBoundableInterface

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

public class ASMGeneratorForBoundableInterface
extends Object

This class generates Interface implementations for components which are bound to a target interface. This is typically the case of interfaces associated to composite components, or of client interfaces associated to primitive components.

Author:
Lionel Seinturier

Constructor Summary
ASMGeneratorForBoundableInterface()
           
 
Method Summary
 ClassDefinition generateDelegator(String targetClassname, String delegateClassname)
          Generate an Interface implementation by extending InterfaceImpl.
protected  String getInterfaceImpl()
          Return the name of the Interface implementation to be used as super class for generated implementations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASMGeneratorForBoundableInterface

public ASMGeneratorForBoundableInterface()
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)

getInterfaceImpl

protected String getInterfaceImpl()
Return the name of the Interface implementation to be used as super class for generated implementations.