org.objectweb.fractal.adl
Class FactoryFactory

java.lang.Object
  extended byorg.objectweb.fractal.adl.FactoryFactory

public class FactoryFactory
extends Object

Provides static methods to get a Factory component.


Field Summary
static String FRACTAL_BACKEND
           
static String JAVA_BACKEND
           
static String STATIC_FRACTAL_BACKEND
           
static String STATIC_JAVA_BACKEND
           
 
Constructor Summary
FactoryFactory()
           
 
Method Summary
static Factory getFactory()
          Returns a bootstrap Factory, with a Java backend.
static Factory getFactory(String backend)
          Returns a Factory with the given backend.
static Factory getFactory(String backend, Map context)
          Returns a Factory with the given backend.
static Factory getFactory(String factory, String backend, Map context)
          Returns a Factory with the given implementation and backend.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FRACTAL_BACKEND

public static final String FRACTAL_BACKEND
See Also:
Constant Field Values

STATIC_FRACTAL_BACKEND

public static final String STATIC_FRACTAL_BACKEND
See Also:
Constant Field Values

JAVA_BACKEND

public static final String JAVA_BACKEND
See Also:
Constant Field Values

STATIC_JAVA_BACKEND

public static final String STATIC_JAVA_BACKEND
See Also:
Constant Field Values
Constructor Detail

FactoryFactory

public FactoryFactory()
Method Detail

getFactory

public static Factory getFactory()
Returns a bootstrap Factory, with a Java backend.

Returns:
a bootstrap factory.

getFactory

public static Factory getFactory(String backend)
                          throws ADLException
Returns a Factory with the given backend.

Parameters:
backend - the desired backend.
Returns:
a Factory with the given backend.
Throws:
ADLException - if the factory cannot be created.

getFactory

public static Factory getFactory(String backend,
                                 Map context)
                          throws ADLException
Returns a Factory with the given backend.

Parameters:
backend - the desired backend.
context - additional optional information.
Returns:
a Factory with the given backend.
Throws:
ADLException - if the factory cannot be created.

getFactory

public static Factory getFactory(String factory,
                                 String backend,
                                 Map context)
                          throws ADLException
Returns a 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:
ADLException - if the factory cannot be created.