org.ow2.jasmine.jade.reflex.api
Class ReflexFractal

java.lang.Object
  extended by org.ow2.jasmine.jade.reflex.api.ReflexFractal

public class ReflexFractal
extends java.lang.Object

Provides a static method to get a Fractal bootstrap component which operates in reflexive mode (the components created by this bootstrap are reflexive components, which means that they are associated to a dual component created by a dual bootstrap). The fractal.provider system property should be defined, as it specifies which Fractal implementation to use. The reflex-fractal.name and reflex-fractal.level system properties respectively indicate the name and the reflexive level (execution / meta) of the returned Fractal bootstrap component.

Author:
Fabienne Boyer

Method Summary
static org.objectweb.fractal.api.Component getBootstrapComponent()
          Returns a reflexive bootstrap component (i.e. a component which allows to create other components in reflexive mode).
static org.objectweb.fractal.api.Component getBootstrapComponent(java.util.Map hints)
          Returns a bootstrap component to create other components.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getBootstrapComponent

public static org.objectweb.fractal.api.Component getBootstrapComponent()
                                                                 throws org.objectweb.fractal.api.factory.InstantiationException
Returns a reflexive bootstrap component (i.e. a component which allows to create other components in reflexive mode). This method more precisely creates an instance of the class whose name is prefixed by "org.ow2.jasmine.jade.reflex.util.Reflex" followed by the fractal.provider system property. For instance, if the fractal.provider system property is equal to org.objectweb.fractal.julia.Julia, this method instanciate the class org.ow2.jasmine.jade.reflex.util.ReflexJulia. This class must implement the Factory interface.

Returns:
a bootstrap component to create other components. This component provides at least two interfaces named type-factory and generic-factory to create component types and components. The type of the generic-factory interface is GenericFactory, or a sub type of this type, but the type of the type-factory interface is not necessarily TypeFactory (or a sub type of this type).
Throws:
org.objectweb.fractal.api.factory.InstantiationException - if the bootstrap component cannot be created.

getBootstrapComponent

public static org.objectweb.fractal.api.Component getBootstrapComponent(java.util.Map hints)
                                                                 throws org.objectweb.fractal.api.factory.InstantiationException
Returns a bootstrap component to create other components. This method creates an instance of the class whose name is associated to the "fractal.provider" key, which much implement the Factory or GenericFactory interface, and returns the component instantiated by this factory.

Parameters:
hints - a map which must associate a value to the "fractal.provider" key, and which may associate a ClassLoader to the "classloader" key. This class loader will be used to load the bootstrap component.
Returns:
a bootstrap component to create other components.
Throws:
org.objectweb.fractal.api.factory.InstantiationException - if the bootstrap component cannot be created.


Copyright © 2008 OW2 Consortium. All Rights Reserved.