org.objectweb.fractal.api.type
Interface ComponentType
- Type
public interface ComponentType
A component type. A component type is just a collection of component
interface types, which describes the interfaces that components of this type
must or may have at runtime.
getFcInterfaceType
public InterfaceType getFcInterfaceType(String name)
throws NoSuchInterfaceException
Returns an interface type of this component type from its name. This method
is not strictly necessary, as it can be implemented by using the
getFcInterfaceTypes
method. But it is convenient and
can be implemented more efficiently than with the previous method. This is
why it is specified here.
name
- the name of one of the interface types returned by getFcInterfaceTypes
(see getFcItfName
).
- the interface type of this component type whose name is equal to
the given name (see
getFcItfName
).
NoSuchInterfaceException
- if there is no such interface type.
getFcInterfaceTypes
public InterfaceType[] getFcInterfaceTypes()
Returns the types of the interfaces of components of this type.
- the types of the interfaces that components of this type must or
may have at runtime.