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; }
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; }
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; }
public Object lookupFc (final String clientItfName) throws NoSuchInterfaceException { if (fcContent == this) { // case of merge...AndContent options ContentBindingController cbc = (ContentBindingController)this; return cbc.lookupFcContent(clientItfName); } else { BindingController bc = (BindingController)fcContent; return bc.lookupFc(clientItfName); } }
public Object lookupFc (final String clientItfName) throws NoSuchInterfaceException { if (fcContent == this) { // case of merge...AndContent options ContentBindingController cbc = (ContentBindingController)this; return cbc.lookupFcContent(clientItfName); } else { BindingController bc = (BindingController)fcContent; return bc.lookupFc(clientItfName); } }
/** * @see org.objectweb.fractal.julia.control.binding.ContainerBindingControllerMixin#lookupFc(java.lang.String) */ private java.lang.Object lookupFc$2(final java.lang.String clientItfName) throws org.objectweb.fractal.api.NoSuchInterfaceException { if ((fcContent) == (this)) { org.objectweb.fractal.julia.control.binding.ContentBindingController cbc = ((org.objectweb.fractal.julia.control.binding.ContentBindingController) (this)); return cbc.lookupFcContent(clientItfName); }else { org.objectweb.fractal.api.control.BindingController bc = ((org.objectweb.fractal.api.control.BindingController) (fcContent)); return bc.lookupFc(clientItfName); } }
protected Node getServerInterface(BindingController bc, String clItfName) { try { Interface serverItf = (Interface) bc.lookupFc(clItfName); if (serverItf != null) { NodeFactory nf = (NodeFactory) model; return nf.createScaServiceNode(serverItf); } else { return null; } } catch (NoSuchInterfaceException e) { throw new AssertionError("Node references non-existing interface."); } } }
/** * A utility function allowing to get components interface binding to the * client interface of the component controller. * * @param parentContentController * parentContentController * @param name * component name * @return the component, null if not found */ public Map<String, Interface> getServerInterfacesLinkedToClientInterfacesOfComponent( final Component component) { final Map<String, Interface> res = new HashMap<String, Interface>(); try { final BindingController componentBindingController = Fractal .getBindingController(component); // List content controller subcomponents for (final String clientItfName : componentBindingController.listFc()) { final Interface itf = (org.objectweb.fractal.api.Interface) componentBindingController .lookupFc(clientItfName); res.put(clientItfName, itf); } } catch (final NoSuchInterfaceException e1) { // do nothing, return null } return res; }
public boolean isBinded(final Component component, final String clientItfName) throws SCAException { boolean res = true; try { // Get the binding controller of the new component final BindingController cBindingController = Fractal .getBindingController(component); // Add all the bindings final SCAComponent o = (SCAComponent) cBindingController.lookupFc(clientItfName); if (o == null) { res = false; } } catch (final NoSuchInterfaceException e) { throw new SCAException( "Impossible to bind the fractal component", e); } return res; }
public Map<String, Object> getListOfBindings(final Component component) throws SCAException{ Map<String, Object> res = new HashMap<String, Object>(); // Get the binding controller of the new component try { final BindingController cBindingController = Fractal .getBindingController(component); String[] binds = cBindingController.listFc(); for(int i=0 ; i < binds.length ; i++){ res.put(binds[i], cBindingController.lookupFc(cBindingController.listFc()[i])); } } catch (NoSuchInterfaceException e) { throw new SCAException(e.getLocalizedMessage()); } return res; }
/** * Checks that the component this controller belongs to is not bound, and * then calls the overriden method. */ public void undeploy() throws UndeploymentException { String[] itfs = _this_weaveableBC.listFc(); for (int i = 0; i < itfs.length; i++) { try { Object o = _this_weaveableBC.lookupFc(itfs[i]); if (o != null) { throw new UndeploymentException( "Component is bound to other components. Unbind it before undeployment"); } } catch (NoSuchInterfaceException ignored) { } } _super_undeploy(); }
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; }
public boolean isAlreadyBind(final Component component, final String clientItfName, final Interface itf) throws SCAException { try { // Get the binding controller of the new component final BindingController cBindingController = Fractal .getBindingController(component); // Add all the bindings final Interface o = (Interface) cBindingController.lookupFc(clientItfName); return (o == itf); } catch (final NoSuchInterfaceException e) { throw new SCAException("Impossible to get the interface", e); } }
/** * 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(); }
public java.lang.Object lookupFc(final java.lang.String arg0) throws org.objectweb.fractal.api.NoSuchInterfaceException { java.util.List<org.ow2.frascati.tinfi.api.IntentHandler> handlers = intentHandlersMap.get(METHODS[1]); try { if( handlers.size() == 0 ) { java.lang.Object ret = impl.lookupFc(arg0); return ret; } else { org.objectweb.fractal.api.Interface itf = getFcItf(); org.ow2.frascati.tinfi.IntentJoinPointImpl<org.objectweb.fractal.api.control.BindingController> ijp = new org.ow2.frascati.tinfi.IntentJoinPointImpl(); ijp.init(handlers,fcComp,itf,impl,METHODS[1],(Object)arg0); java.lang.Object ret = ijp.proceed(); return ret; } } catch( Throwable t ) { if( t instanceof org.objectweb.fractal.api.NoSuchInterfaceException ) { throw (org.objectweb.fractal.api.NoSuchInterfaceException) t; } if( t instanceof RuntimeException ) { throw (RuntimeException) t; } throw new org.ow2.frascati.tinfi.TinfiRuntimeException(t); } }
public java.lang.Object lookupFc(final java.lang.String arg0) throws org.objectweb.fractal.api.NoSuchInterfaceException { java.util.List<org.ow2.frascati.tinfi.api.IntentHandler> handlers = intentHandlersMap.get(METHODS[1]); try { if( handlers.size() == 0 ) { java.lang.Object ret = impl.lookupFc(arg0); return ret; } else { org.objectweb.fractal.api.Component comp = getFcComponent(); org.objectweb.fractal.api.Interface itf = getFcItf(); org.ow2.frascati.tinfi.IntentJoinPointImpl<org.objectweb.fractal.api.control.BindingController> ijp = new org.ow2.frascati.tinfi.IntentJoinPointImpl(); ijp.init(handlers,comp,itf,impl,METHODS[1],(Object)arg0); java.lang.Object ret = ijp.proceed(); return ret; } } catch( Throwable t ) { if( t instanceof org.objectweb.fractal.api.NoSuchInterfaceException ) { throw (org.objectweb.fractal.api.NoSuchInterfaceException) t; } if( t instanceof RuntimeException ) { throw (RuntimeException) t; } throw new org.ow2.frascati.tinfi.TinfiRuntimeException(t); } }
/** * Get the FraSCAti FScript composite, i.e. the fractal component * implementing the whole FraSCAti FScript engine; * * @return the FraSCAti FScript composite. */ public final Component getFraSCAtiScriptComposite() { ServiceReference<?> engineItf = (ServiceReference<?>) engine; Component fscriptComp = ((Interface) engineItf.getService()).getFcItfOwner(); Interface engineSrvItf = null; try { engineSrvItf = (Interface) Fractal.getBindingController(fscriptComp).lookupFc("engine"); return engineSrvItf.getFcItfOwner(); } catch (NoSuchInterfaceException e) { // should not happen e.printStackTrace(); return null; } }
java.lang.Object sItf; try { sItf = bc.lookupFc(names[i]); } catch (org.objectweb.fractal.api.NoSuchInterfaceException e) { continue;
java.lang.Object sItf; try { sItf = bc.lookupFc(names[i]); } catch (org.objectweb.fractal.api.NoSuchInterfaceException e) { continue;
java.lang.Object sItf; try { sItf = bc.lookupFc(names[i]); } catch (org.objectweb.fractal.api.NoSuchInterfaceException e) { continue;