org.objectweb.fractal.juliak.control.interceptor
Class InterceptorControllerMixin

java.lang.Object
  extended by org.objectweb.fractal.juliak.control.interceptor.InterceptorControllerMixin
All Implemented Interfaces:
AttributeController, Controller, InterceptorController, InterceptorDefAttributes

public abstract class InterceptorControllerMixin
extends Object
implements Controller, InterceptorController, InterceptorDefAttributes

This class implements an interceptor controller for managing the interceptors associated to the client and server interfaces of a component.

Since:
2.5
Author:
Lionel Seinturier

Field Summary
 
Fields inherited from interface org.objectweb.fractal.juliak.control.interceptor.InterceptorController
NAME, TYPE
 
Constructor Summary
InterceptorControllerMixin()
           
 
Method Summary
abstract  void _super_initFcController(InitializationContext ic)
           
 void addFcInterceptor(ComponentInterface itf, Interceptor interceptor)
          Appends the specified interceptor at the end of the list of already existing interceptors for the specified Fractal interface.
 Interceptor[] getFcInterceptors(ComponentInterface itf)
          Returns the array of interceptors associated to the specified Fractal interface.
 String getInterceptors()
           
 void initFcController(InitializationContext ic)
          Initialize this controller object.
 boolean removeFcInterceptor(ComponentInterface itf, Interceptor interceptor)
          Removes the specified interceptor from the list of already existing interceptors for the specified Fractal interface.
 void setInterceptors(String interceptors)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterceptorControllerMixin

public InterceptorControllerMixin()
Method Detail

initFcController

public void initFcController(InitializationContext ic)
                      throws InstantiationException
Description copied from interface: Controller
Initialize this controller object.

Specified by:
initFcController in interface Controller
Parameters:
ic - information about the component to which this controller object belongs.
Throws:
InstantiationException - if the initialization fails.

addFcInterceptor

public void addFcInterceptor(ComponentInterface itf,
                             Interceptor interceptor)
Appends the specified interceptor at the end of the list of already existing interceptors for the specified Fractal interface.

Specified by:
addFcInterceptor in interface InterceptorController
Parameters:
itf - the Fractal interface
interceptor - the interceptor

getFcInterceptors

public Interceptor[] getFcInterceptors(ComponentInterface itf)
Returns the array of interceptors associated to the specified Fractal interface.

Specified by:
getFcInterceptors in interface InterceptorController
Parameters:
itf - the Fractal interface
Returns:
the array of interceptors

removeFcInterceptor

public boolean removeFcInterceptor(ComponentInterface itf,
                                   Interceptor interceptor)
Removes the specified interceptor from the list of already existing interceptors for the specified Fractal interface.

Specified by:
removeFcInterceptor in interface InterceptorController
Parameters:
itf - the Fractal interface
interceptor - the interceptor
Returns:
true if the list contained the specified interceptor

setInterceptors

public void setInterceptors(String interceptors)
Specified by:
setInterceptors in interface InterceptorDefAttributes
Parameters:
interceptors - A stringified representation of a Julia Tree structure describing the interceptor class generators associated with this control membrane.

getInterceptors

public String getInterceptors()
Specified by:
getInterceptors in interface InterceptorDefAttributes
Returns:
A stringified representation of a Julia Tree structure describing the interceptor class generators associated with this control membrane.

_super_initFcController

public abstract void _super_initFcController(InitializationContext ic)
                                      throws InstantiationException
Throws:
InstantiationException