|
|||||||||
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.TypeBindingMixin
public abstract class TypeBindingMixin
Provides basic type system related checks to a BindingController
.
Requirements
Component
interface.ComponentType
.
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(InterfaceType clientItfType,
String clientItfName,
Object serverItf)
Binds the client interface whose name is given to a server interface. |
void |
bindFc(String clientItfName,
Object serverItf)
Checks the interface name with the component's type and then calls the bindFc method. |
Object |
lookupFc(InterfaceType clientItfType,
String clientItfName)
Returns the interface to which the given client interface is bound. |
Object |
lookupFc(String clientItfName)
Checks the interface name with the component's type and then calls the lookupFc method. |
void |
unbindFc(InterfaceType clientItfType,
String clientItfName)
Unbinds the given client interface. |
void |
unbindFc(String clientItfName)
Checks the interface name with the component's type and then calls the unbindFc 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 |
---|
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
lookupFc
method.
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
method. If the server
interface implements Interface
, and if its type is an instance of
InterfaceType
, this method also checks the compatibility between
the client and server interface types.
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
method.
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 Object lookupFc(InterfaceType clientItfType, String clientItfName) throws NoSuchInterfaceException
clientItfType
- the type of the clientItfName interface.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(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 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 |