org.objectweb.proactive.core.component
Class Fractive

java.lang.Object
  |
  +--org.objectweb.proactive.core.component.Fractive
All Implemented Interfaces:
Component, Factory, GenericFactory

public class Fractive
extends java.lang.Object
implements GenericFactory, Component, Factory

This class is used for creating components. It acts as :
1. a bootstrap component
2. a GenericFactory for instantiating new components 3. a utility class providing static methods to create collective interfaces and retreive references to ComponentParametersController


Constructor Summary
Fractive()
          no-arg constructor (used by Fractal to get a bootstrap component)
 
Method Summary
static ProActiveInterface createCollectiveClientInterface(java.lang.String itfName, java.lang.String itfSignature)
          Returns a generated interface reference, whose impl field is a group It is able to handle multiple bindings
static ComponentParametersController getComponentParametersController(Component component)
          Returns the ContentController interface of the given component.
 java.lang.Object getFcContentDesc()
          see Factory.getFcContentDesc()
 java.lang.Object getFcControllerDesc()
          see Factory.getFcControllerDesc()
 Type getFcInstanceType()
          see Factory.getFcInstanceType()
 java.lang.Object getFcInterface(java.lang.String itfName)
          see Component.getFcInterface(java.lang.String)
 java.lang.Object[] getFcInterfaces()
          see Component.getFcInterfaces()
 Type getFcType()
          see Component.getFcType()
 Component newFcInstance()
          see Factory.newFcInstance()
 Component newFcInstance(Type arg0, java.lang.Object arg1, java.lang.Object arg2)
          see GenericFactory.newFcInstance(org.objectweb.fractal.api.Type, java.lang.Object, java.lang.Object)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Fractive

public Fractive()
no-arg constructor (used by Fractal to get a bootstrap component)

Method Detail

getComponentParametersController

public static ComponentParametersController getComponentParametersController(Component component)
                                                                      throws NoSuchInterfaceException
Returns the ContentController interface of the given component.

Parameters:
component - a component.
Returns:
the ContentController interface of the given component.
Throws:
NoSuchInterfaceException - if there is no such interface.

createCollectiveClientInterface

public static ProActiveInterface createCollectiveClientInterface(java.lang.String itfName,
                                                                 java.lang.String itfSignature)
                                                          throws ProActiveRuntimeException
Returns a generated interface reference, whose impl field is a group It is able to handle multiple bindings

ProActiveRuntimeException

newFcInstance

public Component newFcInstance(Type arg0,
                               java.lang.Object arg1,
                               java.lang.Object arg2)
                        throws InstantiationException
see GenericFactory.newFcInstance(org.objectweb.fractal.api.Type, java.lang.Object, java.lang.Object)

Specified by:
newFcInstance in interface GenericFactory
InstantiationException

getFcInterface

public java.lang.Object getFcInterface(java.lang.String itfName)
                                throws NoSuchInterfaceException
see Component.getFcInterface(java.lang.String)

Specified by:
getFcInterface in interface Component
NoSuchInterfaceException

getFcInterfaces

public java.lang.Object[] getFcInterfaces()
see Component.getFcInterfaces()

Specified by:
getFcInterfaces in interface Component

getFcType

public Type getFcType()
see Component.getFcType()

Specified by:
getFcType in interface Component

getFcContentDesc

public java.lang.Object getFcContentDesc()
see Factory.getFcContentDesc()

Specified by:
getFcContentDesc in interface Factory

getFcControllerDesc

public java.lang.Object getFcControllerDesc()
see Factory.getFcControllerDesc()

Specified by:
getFcControllerDesc in interface Factory

getFcInstanceType

public Type getFcInstanceType()
see Factory.getFcInstanceType()

Specified by:
getFcInstanceType in interface Factory

newFcInstance

public Component newFcInstance()
                        throws InstantiationException
see Factory.newFcInstance()

Specified by:
newFcInstance in interface Factory
InstantiationException


Copyright © April 2004 INRIA All Rights Reserved.