org.objectweb.fractal.api.type
Interface TypeFactory
public interface TypeFactory
A component interface to create component and interface type objects.
CLIENT
public static final boolean CLIENT
The
isClient value to be used in
createFcItfType to create a client interface type.
- true
COLLECTION
public static final boolean COLLECTION
The
isCollection value to be used in
createFcItfType to create a collection interface type.
- true
MANDATORY
public static final boolean MANDATORY
The
isOptional value to be used in
createFcItfType to create a mandatory interface type.
- false
OPTIONAL
public static final boolean OPTIONAL
The
isOptional value to be used in
createFcItfType to create an optional interface type.
- true
SERVER
public static final boolean SERVER
The
isClient value to be used in
createFcItfType to create a server interface type.
- false
SINGLE
public static final boolean SINGLE
The
isCollection value to be used in
createFcItfType to create a singleton interface type.
- false
createFcItfType
public InterfaceType createFcItfType(String name,
String signature,
boolean isClient,
boolean isOptional,
boolean isCollection)
throws InstantiationException Creates an interface type.
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.
- an interface type initialized with the given values.
InstantiationException - if the interface type cannot be created.