|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.fractal.julia.control.binding.InterceptorBindingMixin
public abstract class InterceptorBindingMixin
Provides output interceptors management to a BindingController
. This
mixin is only useful for the ContainerBindingControllerMixin
, since
the CompositeBindingMixin
and the OptimizedCompositeBindingMixin
already manage interceptors.
Requirements
Component
interface. Moreover this mixin does nothing if the
component does not provide interface introspection functions.
Field Summary | |
---|---|
Component |
_this_weaveableC
The weaveableC field required by this mixin. |
Method Summary | |
---|---|
abstract void |
_super_bindFc(String clientItfName,
Object serverItf)
The bindFc method overriden by this mixin. |
abstract Object |
_super_lookupFc(String clientItfName)
The lookupFc method overriden by this
mixin. |
abstract void |
_super_unbindFc(String clientItfName)
The unbindFc method overriden by this
mixin. |
void |
bindFc(String clientItfName,
Object serverItf)
Gets the interceptor of the given client interface, updates its getFcItfDelegate , and then calls the
overriden method with the interceptor as server interface (if there is
an interceptor for the client interface). |
Object |
lookupFc(String clientItfName)
Calls the overriden method and returns the corresponding getFcItfDelegate (if the result is an Interceptor ). |
void |
unbindFc(String clientItfName)
Gets the interceptor of the given client interface, updates its getFcItfDelegate , and then calls the
overriden method (if there is an interceptor for the client interface). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.fractal.api.control.BindingController |
---|
listFc |
Field Detail |
---|
public Component _this_weaveableC
Component
interface of the component to
which this controller object belongs.
Method Detail |
---|
public Object lookupFc(String clientItfName) throws NoSuchInterfaceException
getFcItfDelegate
(if the result is an Interceptor
).
lookupFc
in interface BindingController
clientItfName
- the name of a client interface of the component to
which this interface belongs.
NoSuchInterfaceException
- if the component to which this interface
belongs does not have a client interface whose name is equal to the
given name.public void bindFc(String clientItfName, Object serverItf) throws NoSuchInterfaceException, IllegalBindingException, IllegalLifeCycleException
getFcItfDelegate
, and then calls the
overriden method with the interceptor as server interface (if there is
an interceptor for the client interface).
bindFc
in interface BindingController
clientItfName
- the name of a client interface of the component to
which this interface belongs.serverItf
- a server interface.
NoSuchInterfaceException
- if there is no such client interface.
IllegalBindingException
- if the binding cannot be created.
IllegalLifeCycleException
- if this component has a LifeCycleController
interface, but it is not in an appropriate state
to perform this operation.public void unbindFc(String clientItfName) throws NoSuchInterfaceException, IllegalBindingException, IllegalLifeCycleException
getFcItfDelegate
, and then calls the
overriden method (if there is an interceptor for the client interface).
unbindFc
in interface BindingController
clientItfName
- the name of a client interface of the component to
which this interface belongs.
NoSuchInterfaceException
- if there is no such client interface.
IllegalBindingException
- if the binding cannot be removed.
IllegalLifeCycleException
- if this component has a LifeCycleController
interface, but it is not in an appropriate state
to perform this operation.public abstract Object _super_lookupFc(String clientItfName) throws NoSuchInterfaceException
lookupFc
method overriden by this
mixin.
clientItfName
- the name of a client interface of the component to
which this interface belongs.
NoSuchInterfaceException
- if the component to which this interface
belongs does not have a client interface whose name is equal to the
given name.public abstract void _super_bindFc(String clientItfName, Object serverItf) throws NoSuchInterfaceException, IllegalBindingException, IllegalLifeCycleException
bindFc
method overriden by this mixin.
clientItfName
- the name of a client interface of the component to
which this interface belongs.serverItf
- a server interface.
NoSuchInterfaceException
- if there is no such client interface.
IllegalBindingException
- if the binding cannot be created.
IllegalLifeCycleException
- if this component has a LifeCycleController
interface, but it is not in an appropriate state
to perform this operation.public abstract void _super_unbindFc(String clientItfName) throws NoSuchInterfaceException, IllegalBindingException, IllegalLifeCycleException
unbindFc
method overriden by this
mixin.
clientItfName
- the name of a client interface of the component to
which this interface belongs.
NoSuchInterfaceException
- if there is no such client interface.
IllegalBindingException
- if the binding cannot be removed.
IllegalLifeCycleException
- if this component has a LifeCycleController
interface, but it is not in an appropriate state
to perform this operation.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |