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

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

public class MetaObjectInterfaceClassGenerator
extends AbstractInterfaceClassGenerator

Creates Interface implementations for the functional interfaces of the component metaobject.
The functional calls are delegated to the "impl" field, whose value is set during binding operations.
- In case of a primitive component, the impl field will be the reified object to which the body is attached.
- In case of a composite component, the impl field will be a component representative.
- For a parallel component, the impl field will be a group of component representatives.

Author:
Matthieu Morel

Field Summary
protected static java.lang.String IMPL_FIELD_NAME
           
protected  boolean isPrimitive
           
 
Fields inherited from class org.objectweb.proactive.core.component.gen.AbstractInterfaceClassGenerator
generatedClassesCache, logger, pool
 
Constructor Summary
MetaObjectInterfaceClassGenerator()
           
 
Method Summary
 ProActiveInterface generateInterface(java.lang.String interfaceName, Component owner, InterfaceType interfaceType, boolean isInternal, boolean isFunctionalInterface)
           
static MetaObjectInterfaceClassGenerator instance()
           
 
Methods inherited from class org.objectweb.proactive.core.component.gen.AbstractInterfaceClassGenerator
addSuperInterfaces, defineClass, generateControllerInterface, generateFunctionalInterface, getClassData, loadClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IMPL_FIELD_NAME

protected static final java.lang.String IMPL_FIELD_NAME
See Also:
Constant Field Values

isPrimitive

protected boolean isPrimitive
Constructor Detail

MetaObjectInterfaceClassGenerator

public MetaObjectInterfaceClassGenerator()
Method Detail

instance

public static MetaObjectInterfaceClassGenerator instance()

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


Copyright 2001-2005 INRIA All Rights Reserved.