org.objectweb.fractal.aokell.lib.interf
Interface InterfaceManager

All Known Implementing Classes:
CompositeExtItfManager, CompositeIntItfManager, PrimitiveExtItfManager

public interface InterfaceManager

This class manages Interface instances. The component and the content controllers delegate to instances of this type the management of their interfaces.

Author:
Lionel Seinturier

Method Summary
 Object getFcInterface(String interfaceName)
          Return the instance implementing the Interface corresponding to the given name.
 Object[] getFcInterfaces()
          Return the array of Interface instances implemented by this component.
 void initFc(Type type, Component compctrlimpl, Object contentPart)
           
 Interface[] registerFcControlInterface(InterfaceType[] its, Object ctrl)
          Register new control interfaces for a given controller.
 Interface registerFcInterface(String interfaceName)
          Register a new collection Interface instance.
 void unregisterFcInterface(String interfaceName)
          Unregister a collection Interface instance.
 

Method Detail

initFc

void initFc(Type type,
            Component compctrlimpl,
            Object contentPart)

getFcInterface

Object getFcInterface(String interfaceName)
                      throws NoSuchInterfaceException
Return the instance implementing the Interface corresponding to the given name. The returned value is of type Object to be compatible with the Component interface.

Throws:
NoSuchInterfaceException

getFcInterfaces

Object[] getFcInterfaces()
Return the array of Interface instances implemented by this component. The returned values are of type Object to be compatible with the Component interface.


registerFcInterface

Interface registerFcInterface(String interfaceName)
                              throws NoSuchInterfaceException
Register a new collection Interface instance. The given name must start with an existing collection interface name decalred in the component type.

Parameters:
interfaceName - the interface name (e.g. foo004)
Throws:
NoSuchInterfaceException - if there is no such collection interface

unregisterFcInterface

void unregisterFcInterface(String interfaceName)
                           throws NoSuchInterfaceException
Unregister a collection Interface instance. The given name must start with an existing collection interface name decalred in the component type.

Parameters:
interfaceName - the interface name (e.g. foo004)
Throws:
NoSuchInterfaceException - if there is no such collection interface

registerFcControlInterface

Interface[] registerFcControlInterface(InterfaceType[] its,
                                       Object ctrl)
Register new control interfaces for a given controller. Most of the time a controller implements only one control interface. One exception is the factory controller which implements the interface type corresponding to Factory and the interface type corresponding to Template.

Parameters:
its - the interface types
ctrl - the controller
Returns:
the interface instances