org.objectweb.fractal.julia
Class Julia
java.lang.Object
org.objectweb.fractal.julia.Julia
- All Implemented Interfaces:
- Factory, GenericFactory
public class Julia
- extends Object
- implements Factory, GenericFactory
Provides access to the Julia bootstrap component.
Constructor Summary |
Julia()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Julia
public Julia()
getFcInstanceType
public Type getFcInstanceType()
- Specified by:
getFcInstanceType
in interface Factory
- Returns:
- null.
getFcControllerDesc
public Object getFcControllerDesc()
- Specified by:
getFcControllerDesc
in interface Factory
- Returns:
- null.
getFcContentDesc
public Object getFcContentDesc()
- Specified by:
getFcContentDesc
in interface Factory
- Returns:
- null.
newFcInstance
public Component newFcInstance()
throws InstantiationException
- Returns the Julia bootstrap component. If this component does not exists
yet, it is created as follows:
- a pre bootstrap component is created by assembling a
Loader
object, a BasicTypeFactoryMixin
object, and a BasicGenericFactoryMixin
object. The loader object is created by
instantiating the class specified in the "julia.loader" system
property.
- the pre bootstrap component is used to create the real bootstrap
component, by calling the newFcInstance method of the
GenericFactory interface of the pre bootstrap component, with the
"bootstrap" string as controller descriptor.
- Specified by:
newFcInstance
in interface Factory
- Returns:
- the
Component
interface of the component instantiated from
this factory.
- Throws:
InstantiationException
- if the component cannot be created.
newFcInstance
public Component newFcInstance(Type type,
Object controllerDesc,
Object contentDesc)
throws InstantiationException
- Returns the Julia bootstrap component. If this component does not exists
yet, it is created as follows:
- a pre bootstrap component is created by assembling a
Loader
object, a BasicTypeFactoryMixin
object, and a BasicGenericFactoryMixin
object. The loader object is created by
instantiating the class specified in the "julia.loader" system
property, or associated to the "julia.loader" key in the contentDesc
Map.
- the pre bootstrap component is used to create the real bootstrap
component, by calling the newFcInstance method of the
GenericFactory interface of the pre bootstrap component, with the
"bootstrap" string as controller descriptor.
- Specified by:
newFcInstance
in interface GenericFactory
- Parameters:
type
- ignored.controllerDesc
- ignored.contentDesc
- an optional Map.
- Returns:
- the
Component
interface of the component instantiated from
this factory.
- Throws:
InstantiationException
- if the component cannot be created.