|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.fractal.julia.factory.CheckGenericFactoryMixin
Provides reflective checks to a GenericFactory
.
Requirements
ComponentType
interface.
Method Summary | |
abstract Component |
_super_newFcInstance(Type type,
Object controllerDesc,
Object contentDesc)
The newFcInstance method overriden by
this mixin. |
void |
checkFcContentClass(Type type,
String content)
Checks the given class against the given component type. |
Component |
newFcInstance(Type type,
Object controllerDesc,
Object contentDesc)
Checks that type and contentDesc are compatible, and then calls the overriden method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public Component newFcInstance(Type type, Object controllerDesc, Object contentDesc) throws InstantiationException
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 void checkFcContentClass(Type type, String content) throws InstantiationException
type
- a component type, must be instance of ComponentType
.content
- the fully qualified name of a Java class.
InstantiationException
- if the given class is not compatible with
the given component type.public abstract Component _super_newFcInstance(Type type, Object controllerDesc, Object contentDesc) throws InstantiationException
newFcInstance
method overriden by
this mixin.
InstantiationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |