|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jasmine.jade.fractal.julia.control.factory.TestCheckGenericFactoryMixin
public abstract class TestCheckGenericFactoryMixin
Provides reflective checks to a GenericFactory.
Requirements
ComponentType interface.
| Method Summary | |
|---|---|
abstract java.lang.Object |
_super_getFcLoader(java.lang.Object loader)
|
abstract void |
_super_initialize(org.objectweb.fractal.julia.loader.Tree args)
The initialize method overriden by this
mixin. |
abstract org.objectweb.fractal.api.Component |
_super_newFcInstance(org.objectweb.fractal.api.Type type,
java.lang.Object controllerDesc,
java.lang.Object contentDesc)
The newFcInstance method overriden
by this mixin. |
boolean |
checkFcAttributeControllerInterface(java.lang.Class itf)
Checks that the given class is valid attribute controller interface. |
void |
checkFcContentClass(org.objectweb.fractal.api.Type type,
java.lang.String content,
java.lang.ClassLoader loader)
Checks the given class against the given component type. |
void |
checkFcType(org.objectweb.fractal.api.Type type,
java.lang.ClassLoader loader)
Checks the given component type. |
java.lang.Object |
getFcLoader(java.lang.Object loader)
|
void |
initialize(org.objectweb.fractal.julia.loader.Tree args)
Initializes this object with the given arguments. |
org.objectweb.fractal.api.Component |
newFcInstance(org.objectweb.fractal.api.Type type,
java.lang.Object controllerDesc,
java.lang.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 void initialize(org.objectweb.fractal.julia.loader.Tree args)
throws java.lang.Exception
initialize in interface org.objectweb.fractal.julia.loader.Initializableargs - the arguments to be used to initialize this object. The format
of these arguments depends on the class of this object.
java.lang.Exception - if a problem occurs during the object initialization.
public org.objectweb.fractal.api.Component newFcInstance(org.objectweb.fractal.api.Type type,
java.lang.Object controllerDesc,
java.lang.Object contentDesc)
throws org.objectweb.fractal.api.factory.InstantiationException
newFcInstance in interface org.objectweb.fractal.api.factory.GenericFactorytype - 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.
org.objectweb.fractal.api.factory.InstantiationException - if the component cannot be created.public java.lang.Object getFcLoader(java.lang.Object loader)
public void checkFcType(org.objectweb.fractal.api.Type type,
java.lang.ClassLoader loader)
throws org.objectweb.fractal.api.factory.InstantiationException
type - the component type to be checked.loader - the class loader to be used to load the Java interface types.
org.objectweb.fractal.api.factory.InstantiationException - if the given type is invalid.public boolean checkFcAttributeControllerInterface(java.lang.Class itf)
itf - a Java interface
public void checkFcContentClass(org.objectweb.fractal.api.Type type,
java.lang.String content,
java.lang.ClassLoader loader)
throws org.objectweb.fractal.api.factory.InstantiationException
type - a component type, must be instance of ComponentType.content - the fully qualified name of a Java class.loader - the class loader to be used to load the "content" class.
org.objectweb.fractal.api.factory.InstantiationException - if the given class is not compatible with the given component
type.
public abstract void _super_initialize(org.objectweb.fractal.julia.loader.Tree args)
throws java.lang.Exception
initialize method overriden by this
mixin.
args - the arguments to be used to initialize this object. The format
of these arguments depends on the class of this object.
java.lang.Exception - if a problem occurs during the object initialization.
public abstract org.objectweb.fractal.api.Component _super_newFcInstance(org.objectweb.fractal.api.Type type,
java.lang.Object controllerDesc,
java.lang.Object contentDesc)
throws org.objectweb.fractal.api.factory.InstantiationException
newFcInstance method overriden
by this mixin.
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.
org.objectweb.fractal.api.factory.InstantiationException - if the component cannot be created.public abstract java.lang.Object _super_getFcLoader(java.lang.Object loader)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||