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

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

public class InterceptorCompControllerImpl
extends Object
implements Controller, InterceptorController, InterceptorDefAttributes

Default implementation of the InterceptorController control interface.

Author:
Lionel Seinturier
See Also:
BasicControllerMixin, InterceptorControllerMixin

Field Summary
 
Fields inherited from interface org.objectweb.fractal.juliak.control.interceptor.InterceptorController
NAME, TYPE
 
Constructor Summary
InterceptorCompControllerImpl()
           
 
Method Summary
 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

InterceptorCompControllerImpl

public InterceptorCompControllerImpl()
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.
See Also:
InterceptorControllerMixin.initFcController(org.objectweb.fractal.julia.InitializationContext)

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
See Also:
InterceptorControllerMixin.addFcInterceptor(org.objectweb.fractal.julia.ComponentInterface,org.objectweb.fractal.julia.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
See Also:
InterceptorControllerMixin.getFcInterceptors(org.objectweb.fractal.julia.ComponentInterface)

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
See Also:
InterceptorControllerMixin.removeFcInterceptor(org.objectweb.fractal.julia.ComponentInterface,org.objectweb.fractal.julia.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.
See Also:
InterceptorControllerMixin.setInterceptors(java.lang.String)

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.
See Also:
InterceptorControllerMixin.getInterceptors()