org.objectweb.fractal.api
Class Fractal

java.lang.Object
  extended by org.objectweb.fractal.api.Fractal

public class Fractal
extends java.lang.Object

Provides a static method to get a bootstrap component. This class is only required for Java implementations of the Fractal model (level 3.2 at least). In other languages the "well known name" used to get the bootstrap component may take a different form than a static method.


Method Summary
static Component getBootstrapComponent()
          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 Component getBootstrapComponent()
                                       throws InstantiationException
Returns a bootstrap component to create other components. This method creates an instance of the class whose name is specified in the fractal.provider system property, which much implement the Factory interface, and returns the component instantiated by this factory.

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:
InstantiationException - if the bootstrap component cannot be created.


Copyright © 2007-2011. All Rights Reserved.