org.objectweb.fractal.aokell.lib.asm
Class ASMGeneratorForImplementedInterface
java.lang.Object
org.objectweb.fractal.aokell.lib.asm.ASMGeneratorForImplementedInterface
- All Implemented Interfaces:
- GeneratorItf
public class ASMGeneratorForImplementedInterface
- extends Object
- implements GeneratorItf
This class generates with ASM a class implementing
Interface
. This implementation corresponds
to Fractal server interfaces associated to a primitive component. Calls to
the generated implementation are delegated to the component.
- Author:
- Lionel Seinturier
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ASMGeneratorForImplementedInterface
public ASMGeneratorForImplementedInterface()
generate
public ClassDefinition generate(String targetClassname,
String delegateJavaItfname)
- Generate an
Interface
implementation by
extending ComponentInterfaceImpl
. The implementation delegates
calls for a given Java interface.
- Specified by:
generate
in interface GeneratorItf
- Parameters:
targetClassname
- the name of the class to generatedelegateJavaItfname
- the Java interface name for which delegation code must be
generated
- Returns:
- the definition (class and bytecode) of the generated class