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