|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.fractal.aokell.lib.control.binding.AbstractBindingControllerImpl
public abstract class AbstractBindingControllerImpl
Root class for binding controllers implementations.
Field Summary | |
---|---|
protected Component |
compctrl
|
Constructor Summary | |
---|---|
AbstractBindingControllerImpl()
|
Method Summary | |
---|---|
void |
bindFc(String arg0,
Object arg1)
Binds the client interface whose name is given to a server interface. |
protected void |
bindFcContent(String arg0,
Object arg1)
If the content and the component parts are separated, and if the content part implements the BindingController interface, invoke it. |
void |
cloneFcCtrl(Component dst,
Object hints)
Clone the controller state from the current component to another one. |
protected Object |
getFcBoundableInterface(String interfaceName)
|
protected Object[] |
getFcInterfaces()
|
void |
initFcCtrl()
Initialize the controller. |
String[] |
listFc()
Returns the names of the client interfaces of the component to which this interface belongs. |
Object |
lookupFc(String arg0)
Returns the interface to which the given client interface is bound. |
protected Interface |
registerFcInterface(String interfaceName)
Register a new interface with the component controller. |
void |
setFcCompCtrl(Component compctrl)
Set the reference towards the component controller associated to this controller. |
protected void |
testLegalBinding(Interface srcItf,
Object arg1)
Test whether the given source interface can be bound to the given target interface. |
protected void |
testLifeCyleBeforeUnbinding(Component arg0)
Test whether the component is stopped before performing an unbind operation. |
protected static String |
toString(Interface src,
Interface target)
Return a string of the form source_component_name.source_interface_name -> target_component_name.target_interface_name describing the binding from a source interface to a target interface. |
void |
unbindFc(String arg0)
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 |
---|
protected Component compctrl
Constructor Detail |
---|
public AbstractBindingControllerImpl()
Method Detail |
---|
public String[] listFc()
listFc
in interface BindingController
public Object lookupFc(String arg0) throws NoSuchInterfaceException
lookupFc
in interface BindingController
arg0
- 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 arg0, Object arg1) throws NoSuchInterfaceException, IllegalBindingException, IllegalLifeCycleException
bindFc
in interface BindingController
arg0
- the name of a client interface of the component to
which this interface belongs.arg1
- 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.protected void bindFcContent(String arg0, Object arg1)
public void unbindFc(String arg0) throws NoSuchInterfaceException, IllegalBindingException, IllegalLifeCycleException
unbindFc
in interface BindingController
arg0
- 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.protected void testLifeCyleBeforeUnbinding(Component arg0) throws IllegalLifeCycleException
IllegalLifeCycleException
protected void testLegalBinding(Interface srcItf, Object arg1) throws IllegalBindingException, NoSuchInterfaceException
IllegalBindingException
- if the binding is illegal
NoSuchInterfaceException
protected static String toString(Interface src, Interface target)
protected Object[] getFcInterfaces()
protected Object getFcBoundableInterface(String interfaceName) throws NoSuchInterfaceException
NoSuchInterfaceException
protected Interface registerFcInterface(String interfaceName) throws NoSuchInterfaceException
NoSuchInterfaceException
- if the interface is not a collection interfacepublic void setFcCompCtrl(Component compctrl)
setFcCompCtrl
in interface Controller
public void initFcCtrl()
initFcCtrl
in interface Controller
public void cloneFcCtrl(Component dst, Object hints) throws CloneCtrlException
cloneFcCtrl
in interface Controller
dst
- the destination componenthints
- hints for performing the operation
CloneCtrlException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |