aokell.lib.asm
Class ASMGeneratorForImplementedInterface
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ASMGeneratorForImplementedInterface
public ASMGeneratorForImplementedInterface()
generateDelegator
public ClassDefinition generateDelegator(String targetClassname,
String delegateClassname)
- Generate an Interface implementation by extending
InterfaceImpl
.
- Parameters:
targetClassname
- the name of the generated classdelegateClassname
- the name of the class where calls will be delegated
- Returns:
- the generated class definition (Class and bytecode)