org.objectweb.fractal.api.factory
Interface Factory


public interface Factory

A component interface to create components of the same type.


Method Summary
 Object getFcContentDesc()
          Returns a description of the content part of the components instantiated by this factory.
 Object getFcControllerDesc()
          Returns a description of the controller part of the components instantiated by this factory.
 Type getFcInstanceType()
          Returns the functional type of the components instantiated by this factory.
 Component newFcInstance()
          Instantiates a component from this factory.
 

Method Detail

getFcInstanceType

public Type getFcInstanceType()
Returns the functional type of the components instantiated by this factory.

Returns:
the functional type of the components instantiated by this factory.

getFcControllerDesc

public Object getFcControllerDesc()
Returns a description of the controller part of the components instantiated by this factory.

Returns:
a description of the controller part of the components instantiated by this factory. This description is implementation specific. If it is null then a "default" controller part will be used.

getFcContentDesc

public Object getFcContentDesc()
Returns a description of the content part of the components instantiated by this factory.

Returns:
a description of the content part of the components instantiated by this factory. 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 creat primitive components.

newFcInstance

public Component newFcInstance()
                        throws InstantiationException
Instantiates a component from this factory.

Returns:
the Component interface of the component instantiated from this factory.
Throws:
InstantiationException - if the component cannot be created.