org.objectweb.fractal.api.factory
Interface GenericFactory


public interface GenericFactory

A component interface to create arbitrary components.


Method Summary
 Component newFcInstance(Type type, java.lang.Object controllerDesc, java.lang.Object contentDesc)
          Creates a component.
 

Method Detail

newFcInstance

Component newFcInstance(Type type,
                        java.lang.Object controllerDesc,
                        java.lang.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.


Copyright © 2007-2011. All Rights Reserved.