org.objectweb.proactive.core.component.gen
Class RepresentativeInterfaceClassGenerator

java.lang.Object
  extended byorg.objectweb.proactive.core.component.gen.AbstractInterfaceClassGenerator
      extended byorg.objectweb.proactive.core.component.gen.RepresentativeInterfaceClassGenerator

public class RepresentativeInterfaceClassGenerator
extends AbstractInterfaceClassGenerator

This class generates representative interfaces objects, which are created on the client side along with the component representative object (@see org.objectweb.proactive.core.component.representative.ProActiveComponentRepresentativeImpl).

Author:
Matthieu Morel

Field Summary
protected  boolean isPrimitive
           
 
Fields inherited from class org.objectweb.proactive.core.component.gen.AbstractInterfaceClassGenerator
generatedClassesCache, logger, pool
 
Constructor Summary
RepresentativeInterfaceClassGenerator()
           
 
Method Summary
protected static void createReifiedMethods(javassist.CtClass generatedClass, javassist.CtMethod[] reifiedMethods, boolean isFunctionalInterface)
           
 ProActiveInterface generateInterface(java.lang.String interfaceName, Component owner, InterfaceType interfaceType, boolean isInternal, boolean isFunctionalInterface)
           
static byte[] getClassData(java.lang.String classname)
          retreives the bytecode associated to the generated class of the given name
static RepresentativeInterfaceClassGenerator instance()
           
 
Methods inherited from class org.objectweb.proactive.core.component.gen.AbstractInterfaceClassGenerator
addSuperInterfaces, defineClass, generateControllerInterface, generateFunctionalInterface, loadClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isPrimitive

protected boolean isPrimitive
Constructor Detail

RepresentativeInterfaceClassGenerator

public RepresentativeInterfaceClassGenerator()
Method Detail

instance

public static RepresentativeInterfaceClassGenerator instance()

getClassData

public static byte[] getClassData(java.lang.String classname)
retreives the bytecode associated to the generated class of the given name


generateInterface

public ProActiveInterface generateInterface(java.lang.String interfaceName,
                                            Component owner,
                                            InterfaceType interfaceType,
                                            boolean isInternal,
                                            boolean isFunctionalInterface)
                                     throws InterfaceGenerationFailedException
Specified by:
generateInterface in class AbstractInterfaceClassGenerator
Throws:
InterfaceGenerationFailedException

createReifiedMethods

protected static void createReifiedMethods(javassist.CtClass generatedClass,
                                           javassist.CtMethod[] reifiedMethods,
                                           boolean isFunctionalInterface)
                                    throws javassist.NotFoundException,
                                           javassist.CannotCompileException
Throws:
javassist.NotFoundException
javassist.CannotCompileException


Copyright 2001-2005 INRIA All Rights Reserved.