void instantiate() throws NoSuchInterfaceException, IllegalBindingException, IllegalLifeCycleException { clientBC.bindFc(clientItfName, server); } }
public List<String> getListOfBinds(final Component component) throws SCAException { final List<String> res = new ArrayList<String>(); try { // Get the binding controller of the new component final BindingController cBindingController = Fractal .getBindingController(component); // Get all the bindings for (int i = 0; i < cBindingController.listFc().length; i++) { res.add(cBindingController.listFc()[i] + " link to " + cBindingController.lookupFc(cBindingController .listFc()[i])); } } catch (final NoSuchInterfaceException e) { throw new SCAException( "Impossible to bind the fractal component", e); } return res; }
/** * Undind the component and then calls the overriden method. */ public void undeploy() throws UndeploymentException { if (_this_weaveableBC != null) { String[] itfs = _this_weaveableBC.listFc(); if (itfs.length != 0) { for (int i = 0; i < itfs.length; i++) { try { if (_this_weaveableBC.lookupFc(itfs[i]) != null) { _this_weaveableBC.unbindFc(itfs[i]); } } catch (Exception e) { throw new ChainedUndeploymentException(e, _this_weaveableC, e.getMessage()); } } } } _super_undeploy(); }
owner.getFcInterface("content-controller"); org.objectweb.fractal.api.control.BindingController bc = ((org.objectweb.fractal.api.control.BindingController) (owner.getFcInterface("binding-controller"))); itf = bc.lookupFc(citf.getFcItfName()); } catch (org.objectweb.fractal.api.NoSuchInterfaceException e) { break; java.lang.Object o = bc.lookupFc(itfName); if (o != null) { bc.unbindFc(itfName); bc.bindFc(itfName, o);
final String[] pluginClientInterfaces = pluginBindingController.listFc(); try { pluginManagerItf = pluginManagerBindingController .lookupFc(pluginItfName); } catch (final Exception e) { e.printStackTrace(); pluginBindingController.bindFc(pluginItfName, pluginManagerItf); } catch (final Exception e) { e.printStackTrace();
public void unbindFc(final java.lang.String arg0) throws org.objectweb.fractal.api.NoSuchInterfaceException,org.objectweb.fractal.api.control.IllegalBindingException,org.objectweb.fractal.api.control.IllegalLifeCycleException { if ( impl == null ) { throw new java.lang.NullPointerException("Trying to invoke a method on a client or server interface whose complementary interface is not bound."); } impl.unbindFc(arg0); }
public java.lang.Object lookupFc(final java.lang.String arg0) throws org.objectweb.fractal.api.NoSuchInterfaceException { if ( impl == null ) { throw new java.lang.NullPointerException("Trying to invoke a method on a client or server interface whose complementary interface is not bound."); } java.lang.Object ret = impl.lookupFc(arg0); return ret; }
String s = cItfType.getFcItfName() + clientItfName.substring(sItfName.length()); bc.bindFc(s, itf); (ContentController)sComp.getFcInterface("content-controller"); String s = sItf.getFcItfName(); String[] itfs = bc.listFc(); for (int i = 0; i < itfs.length; ++i) { if (itfs[i].length() > s.length() && itfs[i].startsWith(s)) {
public java.lang.String[] listFc() { if ( impl == null ) { throw new java.lang.NullPointerException("Trying to invoke a method on a client or server interface whose complementary interface is not bound."); } java.lang.String[] ret = impl.listFc(); return ret; }
owner.getFcInterface("content-controller"); org.objectweb.fractal.api.control.BindingController bc = ((org.objectweb.fractal.api.control.BindingController) (owner.getFcInterface("binding-controller"))); itf = bc.lookupFc(citf.getFcItfName()); } catch (org.objectweb.fractal.api.NoSuchInterfaceException e) { break; java.lang.Object o = bc.lookupFc(itfName); if (o != null) { bc.unbindFc(itfName); bc.bindFc(itfName, o);
"interface must provide the BindingController interface"); String[] itfNames = tmplBC.listFc(); for (int j = 0; j < itfNames.length; ++j) { String itfName = itfNames[j]; Interface serverItf; try { serverItf = (Interface)tmplBC.lookupFc(itfName); } catch (ClassCastException e) { throw new ChainedInstantiationException( if (instanceBC.lookupFc(itfName).equals(itfValue)) { instanceBC.bindFc(itfName, itfValue); } catch (NoSuchInterfaceException e) { throw new ChainedInstantiationException(
.bindFc(itfName, exportedInterface); final BindingController clientBC = getBindingController(exportedInterface .getFcItfOwner()); clientBC.bindFc(exportedInterface.getFcItfName(), serverItf); || itfType.isFcCollectionItf()) continue; if (getBindingController(subTask).lookupFc(itfType.getFcItfName()) == null) {
public void unbindFc(final java.lang.String arg0) throws org.objectweb.fractal.api.NoSuchInterfaceException,org.objectweb.fractal.api.control.IllegalBindingException,org.objectweb.fractal.api.control.IllegalLifeCycleException { if ( impl == null ) { throw new java.lang.NullPointerException("Trying to invoke a method on a client or server interface whose complementary interface is not bound."); } impl.unbindFc(arg0); }
public java.lang.Object lookupFc(final java.lang.String arg0) throws org.objectweb.fractal.api.NoSuchInterfaceException { if ( impl == null ) { throw new java.lang.NullPointerException("Trying to invoke a method on a client or server interface whose complementary interface is not bound."); } java.lang.Object ret = impl.lookupFc(arg0); return ret; }
String s = cItfType.getFcItfName() + clientItfName.substring(sItfName.length()); bc.bindFc(s, itf); (ContentController)sComp.getFcInterface("content-controller"); String s = sItf.getFcItfName(); String[] itfs = bc.listFc(); for (int i = 0; i < itfs.length; ++i) { if (itfs[i].length() > s.length() && itfs[i].startsWith(s)) {
public java.lang.String[] listFc() { if ( impl == null ) { throw new java.lang.NullPointerException("Trying to invoke a method on a client or server interface whose complementary interface is not bound."); } java.lang.String[] ret = impl.listFc(); return ret; }