|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.fractal.julia.factory.BasicGenericFactoryMixin
Provides a basic implementation of the GenericFactory
interface.
Requirements
newFcInstance
method must
be instances of ComponentType
.newFcInstance
method must be strings referencing "true descriptors", which
are loaded with the _this_weaveableL
loader. Here "true descriptors"
means controller descriptors as specified in ContextClassGenerator
.
Field Summary | |
Loader |
_this_weaveableL
The weaveableL field required by this mixin. |
TypeFactory |
_this_weaveableTF
The weaveableTF field required by this mixin. |
Constructor Summary | |
BasicGenericFactoryMixin()
|
Method Summary | |
Tree |
getFcContentDescriptor(Object contentDesc)
Returns the tree corresponding to the given content descriptor. |
Tree |
getFcControllerDescriptor(Object controllerDesc)
Returns the tree corresponding to the given controller descriptor. |
Tree |
getFcTypeDescriptor(Type type)
Returns a tree representing the given component type. |
Component |
newFcInstance(Type type,
Object controllerDesc,
Object contentDesc)
Creates a component. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public Loader _this_weaveableL
Loader
interface of the component to
which this controller object belongs.
public TypeFactory _this_weaveableTF
TypeFactory
interface of the component to
which this controller object belongs.
Constructor Detail |
public BasicGenericFactoryMixin()
Method Detail |
public Component newFcInstance(Type type, Object controllerDesc, Object contentDesc) throws InstantiationException
GenericFactory
newFcInstance
in interface GenericFactory
type
- an arbitrary component type.controllerDesc
- a description of the controller part of the
component to be created. This description is implementation specific.
If it is null then a "default" controller part will be used.contentDesc
- a description of the content part of the
component to be created. This description is implementation specific.
It may be null to create component with an empty initial
content. It may also be, in Java, the fully qualified name of a Java
class, to create primitive components.
Component
interface of the created component.
InstantiationException
- if the component cannot be created.public Tree getFcTypeDescriptor(Type type) throws InstantiationException
ContextClassGenerator
type
- a component type, must be instance of ComponentType
.
InstantiationException
- if the given type is not an instance of
ComponentType
, or if it contains control interface types.public Tree getFcControllerDescriptor(Object controllerDesc) throws InstantiationException
_this_weaveableL
loader. It must have
the format specified in ContextClassGenerator
controllerDesc
- a string referencing a true controller descriptor.
InstantiationException
- if the tree cannot be loaded.public Tree getFcContentDescriptor(Object contentDesc)
ContextClassGenerator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |