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
 java.lang.Object getFcInterface(java.lang.String interfaceName)
          Returns an external interface of the component to which this interface belongs.
 java.lang.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

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

java.lang.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

java.lang.Object getFcInterface(java.lang.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.


Copyright © 2007-2011. All Rights Reserved.