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

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

public class ReflexFactoryFactory
extends java.lang.Object

Provides static methods to get a Factory component which operates in reflexive mode (the components created by this factory are reflexive components, which means that they are associated to a dual component created by a dual factory). The name and the level (execution / meta) of the factory are given by the reflex-fractal.name and reflex-fractal.level system properties. At instanciation time, the factory registrates itself under the naming service and automatically get the reference of its dual factory if these has already been started.

Author:
Fabienne Boyer

Field Summary
static java.lang.String REFLEX_FRACTAL_BACKEND
           
 
Constructor Summary
ReflexFactoryFactory()
           
 
Method Summary
static org.objectweb.fractal.adl.Factory getFactory(java.lang.String backend)
          Returns a reflexive Factory with the given backend.
static org.objectweb.fractal.adl.Factory getFactory(java.lang.String fact, java.lang.String backend, java.util.Map context)
          Returns a reflexive Factory with the given implementation and backend.
static java.lang.String getReflexBackend(java.lang.String backend)
          Returns the reflexive backend corresponding to the given backend.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REFLEX_FRACTAL_BACKEND

public static java.lang.String REFLEX_FRACTAL_BACKEND
Constructor Detail

ReflexFactoryFactory

public ReflexFactoryFactory()
Method Detail

getFactory

public static org.objectweb.fractal.adl.Factory getFactory(java.lang.String backend)
                                                    throws java.lang.Exception
Returns a reflexive Factory with the given backend.

Parameters:
backend - the desired backend.
Returns:
a Factory with the given backend.
Throws:
org.objectweb.fractal.adl.ADLException - if the factory cannot be created.
java.lang.Exception

getFactory

public static org.objectweb.fractal.adl.Factory getFactory(java.lang.String fact,
                                                           java.lang.String backend,
                                                           java.util.Map context)
                                                    throws java.lang.Exception
Returns a reflexive Factory with the given implementation and backend.

Parameters:
factory - the name of the desired factory.
backend - the desired backend.
context - additional optional information.
Returns:
a Factory with the given backend.
Throws:
org.objectweb.fractal.adl.ADLException - if the factory cannot be created.
org.objectweb.fractal.api.factory.InstantiationException
java.lang.Exception

getReflexBackend

public static java.lang.String getReflexBackend(java.lang.String backend)
Returns the reflexive backend corresponding to the given backend.

Parameters:
backend - the desired backend.
Returns:
the corresponding reflexive backend (null if not existing).


Copyright © 2008 OW2 Consortium. All Rights Reserved.