org.objectweb.fractal.api
Interface Component


public interface Component

A component interface to introspect the external interfaces of the component to which it belongs.


Method Summary
 Object getFcInterface(String interfaceName)
          Returns an external interface of the component to which this interface belongs.
 Object[] getFcInterfaces()
          Returns the external interfaces of the component to which this interface belongs.
 Type getFcType()
          Returns the type of the component to which this interface belongs.
 

Method Detail

getFcType

public Type getFcType()
Returns the type of the component to which this interface belongs. The type system is not specified here, in order to allow many type systems to be used. The basic type system specified in the org.objectweb.fractal.api.type package should be sufficient in most cases, but another one can be used if necessary.

Returns:
the type of the component to which this interface belongs.

getFcInterfaces

public Object[] getFcInterfaces()
Returns the external interfaces of the component to which this interface belongs.

Returns:
the external interfaces of the component to which this interface belongs, including this interface.

getFcInterface

public Object getFcInterface(String interfaceName)
                      throws NoSuchInterfaceException
Returns an external interface of the component to which this interface belongs.

Parameters:
interfaceName - the name of the external interface that must be returned.
Returns:
the external interface of the component to which this interface belongs, whose name is equal to the given name.
Throws:
NoSuchInterfaceException - if there is no such interface.