public org.objectweb.fractal.api.Component getComponent() { org.objectweb.fractal.api.Component ret = service.getComponent(); return ret; }
public org.objectweb.fractal.api.Component getComponent() { 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."); } org.objectweb.fractal.api.Component ret = impl.getComponent(); return ret; }
public void deleteExecution(final Execution exec) throws CoreException { // delete binding between scope and execution final List<Binding> listOfBindings = new ArrayList<Binding>(); try { listOfBindings.add(new Binding("service", (org.objectweb.fractal.api.Interface) exec.getComponent() .getFcInterface("service"))); SCAHelper.getSCAHelper().deleteBindings( this.getComponent(), listOfBindings); SCAHelper.getSCAHelper().deleteComponent(exec.getComponent()); } catch (final NoSuchInterfaceException e) { throw new CoreException("impossible to delete binding", e); } catch (final SCAException e) { throw new CoreException("impossible to delete binding", e); } }
public void addExecution(final Execution childExecution) throws CoreException { try { // link child to execution List<Binding> listOfBindings = new ArrayList<Binding>(); listOfBindings.add(new Binding("childs_" + String.valueOf(this.childExecutions.size()), (org.objectweb.fractal.api.Interface) (childExecution) .getComponent().getFcInterface("service"))); FractalHelper.getFractalHelper().addBindings(this.getComponent(), listOfBindings); // link execution to child listOfBindings = new ArrayList<Binding>(); listOfBindings.add(new Binding("parentExec", (org.objectweb.fractal.api.Interface) this.getComponent() .getFcInterface("service"))); FractalHelper.getFractalHelper().addBindings( childExecution.getComponent(), listOfBindings); } catch (final NoSuchInterfaceException e) { throw new CoreException(e); } }
public void addExecution(final Execution childExecution) throws CoreException { try { // link child to execution List<Binding> listOfBindings = new ArrayList<Binding>(); listOfBindings.add(new Binding("childs_" + String.valueOf(this.childExecutions.size()), (org.objectweb.fractal.api.Interface) (childExecution) .getComponent().getFcInterface("service"))); SCAHelper.getSCAHelper().addBindings(this.getComponent(), listOfBindings); // link execution to child listOfBindings = new ArrayList<Binding>(); listOfBindings.add(new Binding("parentExec", (org.objectweb.fractal.api.Interface) this.getComponent() .getFcInterface("service"))); SCAHelper.getSCAHelper().addBindings( childExecution.getComponent(), listOfBindings); } catch (final NoSuchInterfaceException e) { throw new CoreException(e); } catch (final SCAException e) { throw new CoreException(e); } }
public org.objectweb.fractal.api.Component getComponent() { java.util.List<org.ow2.frascati.tinfi.api.IntentHandler> handlers = intentHandlersMap.get(METHODS[29]); try { if( handlers.size() == 0 ) { org.objectweb.fractal.api.Component ret = impl.getComponent(); return ret; } else { org.objectweb.fractal.api.Component comp = getFcComponent(); org.objectweb.fractal.api.Interface itf = getFcItf(); org.ow2.frascati.tinfi.IntentJoinPointImpl<com.ebmwebsourcing.easyviper.core.api.engine.Execution> ijp = new org.ow2.frascati.tinfi.IntentJoinPointImpl(); ijp.init(handlers,comp,itf,impl,METHODS[29]); org.objectweb.fractal.api.Component ret = (org.objectweb.fractal.api.Component) ijp.proceed(); return ret; } } catch( Throwable t ) { if( t instanceof RuntimeException ) { throw (RuntimeException) t; } throw new org.ow2.frascati.tinfi.TinfiRuntimeException(t); } }
public void deleteProcess(final Process process) throws CoreException { try { SCAExtendedContentController parentContentController = (SCAExtendedContentController) process.getParentExecution().getComponent().getFcInterface(SCAContentController.NAME); parentContentController.releaseFcContent(process.getComponent(), true); } catch (NoSuchInterfaceException e) { throw new CoreException("Delete process "+process.getName()+ "failed. Caused by "+e.getMessage()); } }
.getComponentByInterface( FractalHelper.getFractalHelper().getParent( this.getComponent()), (org.objectweb.fractal.api.Interface) nextExecutableElement, "service"); .getFractalHelper() .isAlreadyBind( childExecution.getComponent(), "currentTarget", (org.objectweb.fractal.api.Interface) nextExecutableElement)) { this.getParentScope().linkedExecution2ExecutableElement( (Execution) childExecution.getComponent() .getFcInterface("service"), nextExecutableElement); "execution", (org.objectweb.fractal.api.Interface) (Execution) childExecution .getComponent().getFcInterface("service"))) { this.getParentScope().linkedExecutableElement2Execution( (ExecutableElement) targetComp
.getSCAHelper() .isAlreadyBind( childExecution.getComponent(), "currentTarget", (Execution) childExecution.getComponent() .getFcInterface("service"), nextExecutableElement); "execution", (org.objectweb.fractal.api.Interface) (Execution) childExecution .getComponent().getFcInterface("service"))) { this.getParentScope().linkedExecutableElement2Execution( (Node) targetComp .getFcInterface("service"), (Execution) childExecution.getComponent() .getFcInterface("service"));
public void removeChildExecution(final Execution execution) throws CoreException { if (execution != null) { Component exeComp; try { exeComp = FractalHelper.getFractalHelper() .getComponentByInterface( this.getParentScope().getComponent(), (org.objectweb.fractal.api.Interface) execution.getComponent().getFcInterface("service"), "service"); if (exeComp != null) { FractalHelper.getFractalHelper().deleteComponent(exeComp); } } catch (NoSuchInterfaceException e) { throw new CoreException(e); } } }
try { if( handlers.size() == 0 ) { org.objectweb.fractal.api.Component ret = impl.getComponent(); return ret;
public void removeChildExecution(final Execution execution) throws CoreException { if (execution != null) { Component exeComp; try { exeComp = SCAHelper.getSCAHelper() .getComponentByInterface( this.getParentScope().getComponent(), (org.objectweb.fractal.api.Interface) execution.getComponent().getFcInterface("service"), "service"); if (exeComp != null) { SCAHelper.getSCAHelper().deleteComponent(exeComp); } } catch (NoSuchInterfaceException e) { throw new CoreException(e); } catch (SCAException e) { throw new CoreException(e); } } }
Scope scope = (Scope) this.getNode().getComponent().getFcInterface("service"); if (!SCAHelper.getSCAHelper().isStarted(scope.getExecution().getComponent())) { SCAHelper.getSCAHelper().startComponent(scope.getExecution().getComponent());