/** * Checks the interface name with the component's type and then calls the * {@link #unbindFc(InterfaceType,String) unbindFc} method. * * @param clientItfName the name of a client interface of the component to * which this interface belongs. * @throws NoSuchInterfaceException if there is no such client interface. * @throws IllegalBindingException if the binding cannot be removed. * @throws IllegalLifeCycleException if this component has a {@link * org.objectweb.fractal.api.control.LifeCycleController} interface, but it is not in an appropriate state * to perform this operation. */ public void unbindFc (final String clientItfName) throws NoSuchInterfaceException, IllegalBindingException, IllegalLifeCycleException { ComponentType compType = (ComponentType)_this_weaveableC.getFcType(); InterfaceType clientItfType; try { clientItfType = compType.getFcInterfaceType(clientItfName); } catch (NoSuchInterfaceException e) { throw new ChainedNoSuchInterfaceException( null, _this_weaveableC, clientItfName); } checkFcClientInterface(clientItfType); unbindFc(clientItfType, clientItfName); }
/** * Checks the interface name with the component's type and then calls the * {@link #lookupFc(InterfaceType,String) lookupFc} method. * * @param clientItfName the name of a client interface of the component to * which this interface belongs. * @return the server interface to which the given interface is bound, or <tt> * null</tt> if it is not bound. * @throws NoSuchInterfaceException if the component to which this interface * belongs does not have a client interface whose name is equal to the * given name. */ public Object lookupFc (final String clientItfName) throws NoSuchInterfaceException { ComponentType compType = (ComponentType)_this_weaveableC.getFcType(); InterfaceType clientItfType; try { clientItfType = compType.getFcInterfaceType(clientItfName); } catch (NoSuchInterfaceException e) { throw new ChainedNoSuchInterfaceException( null, _this_weaveableC, clientItfName); } checkFcClientInterface(clientItfType); return lookupFc(clientItfType, clientItfName); }
/** * Checks the interface name with the component's type and then calls the * {@link #lookupFc(InterfaceType,String) lookupFc} method. * * @param clientItfName the name of a client interface of the component to * which this interface belongs. * @return the server interface to which the given interface is bound, or <tt> * null</tt> if it is not bound. * @throws NoSuchInterfaceException if the component to which this interface * belongs does not have a client interface whose name is equal to the * given name. */ public Object lookupFc (final String clientItfName) throws NoSuchInterfaceException { ComponentType compType = (ComponentType)_this_weaveableC.getFcType(); InterfaceType clientItfType; try { clientItfType = compType.getFcInterfaceType(clientItfName); } catch (NoSuchInterfaceException e) { throw new ChainedNoSuchInterfaceException( null, _this_weaveableC, clientItfName); } checkFcClientInterface(clientItfType); return lookupFc(clientItfType, clientItfName); }
/** * Checks the interface name with the component's type and then calls the * {@link #unbindFc(InterfaceType,String) unbindFc} method. * * @param clientItfName the name of a client interface of the component to * which this interface belongs. * @throws NoSuchInterfaceException if there is no such client interface. * @throws IllegalBindingException if the binding cannot be removed. * @throws IllegalLifeCycleException if this component has a {@link * org.objectweb.fractal.api.control.LifeCycleController} interface, but it is not in an appropriate state * to perform this operation. */ public void unbindFc (final String clientItfName) throws NoSuchInterfaceException, IllegalBindingException, IllegalLifeCycleException { ComponentType compType = (ComponentType)_this_weaveableC.getFcType(); InterfaceType clientItfType; try { clientItfType = compType.getFcInterfaceType(clientItfName); } catch (NoSuchInterfaceException e) { throw new ChainedNoSuchInterfaceException( null, _this_weaveableC, clientItfName); } checkFcClientInterface(clientItfType); unbindFc(clientItfType, clientItfName); }
null, _this_weaveableC, clientItfName); checkFcClientInterface(cItfType);
null, _this_weaveableC, clientItfName); checkFcClientInterface(cItfType);