org.objectweb.fractal.adl

Class 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

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.

Field Details

FRACTAL_BACKEND

public static final String FRACTAL_BACKEND


JAVA_BACKEND

public static final String JAVA_BACKEND


STATIC_FRACTAL_BACKEND

public static final String STATIC_FRACTAL_BACKEND


STATIC_JAVA_BACKEND

public static final String STATIC_JAVA_BACKEND

Method Details

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.