/** * Returns the fcBindings map. This map is created and initialized if * necessary. * * @return the fcBindings map. */ private Map getFcBindings () { if (fcBindings == null) { fcBindings = new HashMap(); String[] names = _super_listFc(); for (int i = 0; i < names.length; ++i) { fcBindings.put(names[i], fcBindings); } } return fcBindings; }
/** * Unbinds the given client interface. More precisely, unbinds the client * interface of the component to which this interface belongs, and whose name * is equal to the given name. This method updates the fcBindings map, and * also calls the overriden 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 { _super_unbindFc(clientItfName); if (fcBindings != null) { fcBindings.put(clientItfName, fcBindings); } }
/** * Returns the names of the client interfaces of the component to which this * interface belongs. This method returns the fcBindings keys. * * @return the names of the client interfaces of the component to which this * interface belongs. */ public String[] listFc () { Map fcBindings = getFcBindings(); return (String[])fcBindings.keySet().toArray(new String[fcBindings.size()]); }
_super_bindFc(clientItfName, o); Map fcBindings = getFcBindings(); fcBindings.put(clientItfName, serverItf);
_super_bindFc(clientItfName, o); Map fcBindings = getFcBindings(); fcBindings.put(clientItfName, serverItf);
/** * Returns the names of the client interfaces of the component to which this * interface belongs. This method returns the fcBindings keys. * * @return the names of the client interfaces of the component to which this * interface belongs. */ public String[] listFc () { Map fcBindings = getFcBindings(); return (String[])fcBindings.keySet().toArray(new String[fcBindings.size()]); }
/** * Returns the fcBindings map. This map is created and initialized if * necessary. * * @return the fcBindings map. */ private Map getFcBindings () { if (fcBindings == null) { fcBindings = new HashMap(); String[] names = _super_listFc(); for (int i = 0; i < names.length; ++i) { fcBindings.put(names[i], fcBindings); } } return fcBindings; }
/** * Unbinds the given client interface. More precisely, unbinds the client * interface of the component to which this interface belongs, and whose name * is equal to the given name. This method updates the fcBindings map, and * also calls the overriden 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 { _super_unbindFc(clientItfName); if (fcBindings != null) { fcBindings.put(clientItfName, fcBindings); } }
/** * Returns the interface to which the given client interface is bound. More * precisely, returns the server interface to which the client interface whose * name is given is bound. This server interface is necessarily in the same * address space as the client interface (see {@link #bindFc bindFc}). This * method uses the fcBindings map to return its result. * * @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 { Map fcBindings = getFcBindings(); Object result = fcBindings.get(clientItfName); if (result == fcBindings) { result = null; } return result; }
/** * Returns the interface to which the given client interface is bound. More * precisely, returns the server interface to which the client interface whose * name is given is bound. This server interface is necessarily in the same * address space as the client interface (see {@link #bindFc bindFc}). This * method uses the fcBindings map to return its result. * * @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 { Map fcBindings = getFcBindings(); Object result = fcBindings.get(clientItfName); if (result == fcBindings) { result = null; } return result; }