|
|||||||||
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.OptimizedContainerBindingMixin
public abstract class OptimizedContainerBindingMixin
Provides an optimized container based implementation of the BindingController
interface. This mixin is designed to override a basic
container binding mixin: indeed it implements the BindingController
methods by using a hash map, and calls the overriden method to optimized
bindings in the encapsulated component (the bindings are optimized by binding
the encapsulated component to
"((ComponentInterface)serverItf).getFcItfImpl()", instead of "serverItf").
Requirements
Field Summary | |
---|---|
Map |
fcBindings
The map used to store the bindings of this component. |
Method Summary | |
---|---|
abstract void |
_super_bindFc(String clientItfName,
Object serverItf)
The bindFc method overriden by this mixin. |
abstract String[] |
_super_listFc()
The listFc 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)
Binds the client interface whose name is given to a server interface. |
String[] |
listFc()
Returns the names of the client interfaces of the component to which this interface belongs. |
Object |
lookupFc(String clientItfName)
Returns the interface to which the given client interface is bound. |
void |
unbindFc(String clientItfName)
Unbinds the given client interface. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Map fcBindings
Method Detail |
---|
public String[] listFc()
listFc
in interface BindingController
public Object lookupFc(String clientItfName) throws NoSuchInterfaceException
bindFc
). This
method uses the fcBindings map to return its result.
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
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
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 String[] _super_listFc()
listFc
method overriden by this
mixin.
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 |