|
|||||||||||
| 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)
|
| 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
newFcInstance in interface GenericFactoryInstantiationException
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
contentDesc - a content descriptor.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||