org.objectweb.fractal.aokell.lib.asm
Class ASMGeneratorForImplementedInterface

java.lang.Object
  extended by 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

Constructor Summary
ASMGeneratorForImplementedInterface()
           
 
Method Summary
 ClassDefinition generate(String targetClassname, String delegateJavaItfname)
          Generate an Interface implementation by extending ComponentInterfaceImpl.
 
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

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 generate
delegateJavaItfname - the Java interface name for which delegation code must be generated
Returns:
the definition (class and bytecode) of the generated class