|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.objectweb.fractal.julia.control.binding.OptimizedCompositeBindingMixin
Provides optimized ComponentInterface management to a BindingController. This mixin uses shortcut links between component
interfaces where possible, i.e. when some interfaces do not have associated
interceptors.
Requirements
Component and ContentController interfaces.
| Field Summary | |
|---|---|
Component |
_this_weaveableC
The weaveableC field required by this mixin. |
ContentController |
_this_weaveableCC
The weaveableCC field required by this mixin. |
| Method Summary | |
|---|---|
abstract void |
_super_bindFc(InterfaceType clientItfType,
String clientItfName,
Object serverItf)
The bindFc
method overriden by this mixin. |
abstract void |
_super_unbindFc(InterfaceType clientItfType,
String clientItfName)
The unbindFc
method overriden by this mixin. |
void |
bindFc(InterfaceType clientItfType,
String clientItfName,
Object serverItf)
Sets the shortcuts for the given binding and then calls the overriden method. |
void |
setFcClientShortcuts(Interface clientItf,
Object impl,
Set visited,
List shortcutItfs,
List shortcutImpls)
Finds the shortcut links to be updated by following the bindings backwards from the given client interface. |
void |
setFcServerShortcuts(Interface serverItf,
Object impl,
Set visited,
List shortcutItfs,
List shortcutImpls)
Finds the shortcut links to be updated by followng the bindings backwards from the given server interface. |
void |
setFcShortcuts(InterfaceType clientItfType,
String clientItfName,
Object serverItf)
Creates the given binding and updates the shortcuts links accordingly. |
void |
unbindFc(InterfaceType clientItfType,
String clientItfName)
Updates the shortcuts for the given binding and then calls the overriden method. |
| 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 |
|---|
bindFc, listFc, lookupFc, unbindFc |
| Field Detail |
public Component _this_weaveableC
Component interface of the component to
which this controller object belongs.
public ContentController _this_weaveableCC
ContentController interface of the
component to which this controller object belongs.
| Method Detail |
public void bindFc(InterfaceType clientItfType,
String clientItfName,
Object serverItf)
throws NoSuchInterfaceException,
IllegalBindingException,
IllegalLifeCycleException
clientItfType - the type of the clientItfName interface.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(InterfaceType clientItfType,
String clientItfName)
throws NoSuchInterfaceException,
IllegalBindingException,
IllegalLifeCycleException
clientItfType - the type of the clientItfName interface.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 void setFcShortcuts(InterfaceType clientItfType,
String clientItfName,
Object serverItf)
throws NoSuchInterfaceException,
IllegalBindingException
clientItfType - the type of the 'clientItfName' interface.clientItfName - a client interface name.serverItf - the server interface to which the client interface must
be bound, or null if it must be unbound.
NoSuchInterfaceException - if there is no client interface whose name
is equal to 'clientItfName'.
IllegalBindingException - if a problem occurs.
public void setFcClientShortcuts(Interface clientItf,
Object impl,
Set visited,
List shortcutItfs,
List shortcutImpls)
throws Exception
clientItf - the client interface from which the bindings must be
followed backward.impl - the object to be used to update the shortcut links with getFcItfImpl.visited - the already visited interfaces.shortcutItfs - the interfaces whose shortcut links must be updated.shortcutImpls - the values to be used to update the shortcut links.
Exception - if a problem occurs.
public void setFcServerShortcuts(Interface serverItf,
Object impl,
Set visited,
List shortcutItfs,
List shortcutImpls)
throws Exception
serverItf - the server interface from which the bindings must be
followed backward.impl - the object to be used to update the shortcut links with getFcItfImpl.visited - the already visited interfaces.shortcutItfs - the interfaces whose shortcut links must be updated.shortcutImpls - the values to be used to update the shortcut links.
Exception - if a problem occurs.
public abstract void _super_bindFc(InterfaceType clientItfType,
String clientItfName,
Object serverItf)
throws NoSuchInterfaceException,
IllegalBindingException,
IllegalLifeCycleException
bindFc
method overriden by this mixin.
clientItfType - the type of the clientItfName interface.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(InterfaceType clientItfType,
String clientItfName)
throws NoSuchInterfaceException,
IllegalBindingException,
IllegalLifeCycleException
unbindFc
method overriden by this mixin.
clientItfType - the type of the clientItfName interface.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 | ||||||||||