org.objectweb.fractal.api.factory
Interface GenericFactory
- public interface GenericFactory
A component interface to create arbitrary components.
newFcInstance
public Component newFcInstance(Type type,
Object controllerDesc,
Object contentDesc)
throws InstantiationException
- Creates a component.
- Parameters:
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.
- Returns:
- the
Component
interface of the created component.
- Throws:
InstantiationException
- if the component cannot be created.