org.objectweb.fractal.julia.type
Class BasicTypeFactoryMixin

java.lang.Object
  extended byorg.objectweb.fractal.julia.type.BasicTypeFactoryMixin
All Implemented Interfaces:
TypeFactory

public class BasicTypeFactoryMixin
extends Object
implements TypeFactory

Provides a basic implementation of the TypeFactory interface.

Requirements


Field Summary
 
Fields inherited from interface org.objectweb.fractal.api.type.TypeFactory
CLIENT, COLLECTION, MANDATORY, OPTIONAL, SERVER, SINGLE
 
Constructor Summary
BasicTypeFactoryMixin()
           
 
Method Summary
 InterfaceType createFcItfType(String name, String signature, boolean isClient, boolean isOptional, boolean isCollection)
          Creates an interface type.
 ComponentType createFcType(InterfaceType[] interfaceTypes)
          Creates a component type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicTypeFactoryMixin

public BasicTypeFactoryMixin()
Method Detail

createFcItfType

public InterfaceType createFcItfType(String name,
                                     String signature,
                                     boolean isClient,
                                     boolean isOptional,
                                     boolean isCollection)
                              throws InstantiationException
Description copied from interface: TypeFactory
Creates an interface type.

Specified by:
createFcItfType in interface TypeFactory
Parameters:
name - the name of interfaces of this type (see getFcItfName).
signature - signatures of the methods of interfaces of this type. In Java this "signature" is the fully qualified name of a Java interface corresponding to these method signatures.
isClient - true if component interfaces of this type are client interfaces.
isOptional - true if component interfaces of this type are optional interfaces.
isCollection - true if a component may have several interfaces of this type.
Returns:
an interface type initialized with the given values.
Throws:
InstantiationException - if the interface type cannot be created.

createFcType

public ComponentType createFcType(InterfaceType[] interfaceTypes)
                           throws InstantiationException
Description copied from interface: TypeFactory
Creates a component type.

Specified by:
createFcType in interface TypeFactory
Parameters:
interfaceTypes - the interface types of the component type to be created.
Returns:
a component type whose getFcInterfaceTypes method returns an array equal to interfaceTypes.
Throws:
InstantiationException - if the component type cannot be created.