Examples of Sources


Examples of ch.grengine.sources.Sources

            throw new IllegalArgumentException("Dir mode is null.");
        }
        CompilerFactory compilerFactory = new DefaultGroovyCompilerFactory(config);
        TopCodeCacheFactory topCodeCacheFactory = new DefaultTopCodeCacheFactory(compilerFactory);
        Engine engine = new LayeredEngine.Builder().setTopCodeCacheFactory(topCodeCacheFactory).build();
        Sources sources = new DirBasedSources.Builder(dir)
                .setCompilerFactory(compilerFactory)
                .setDirMode(dirMode)
                .build();
        return new Builder()
                .setEngine(engine)
View Full Code Here

Examples of ch.grengine.sources.Sources

        CompilerFactory compilerFactory = new DefaultGroovyCompilerFactory(config);
        TopCodeCacheFactory topCodeCacheFactory = new DefaultTopCodeCacheFactory(compilerFactory);
        Engine engine = new LayeredEngine.Builder().setTopCodeCacheFactory(topCodeCacheFactory).build();
        SourceFactory sourceFactory = new DefaultSourceFactory.Builder().setTrackUrlContent(true).build();
        Set<Source> sourceSet = SourceUtil.urlsToSourceSet(sourceFactory, urls);
        Sources sources = new FixedSetSources.Builder(sourceSet)
                .setName("URL Sources")
                .setCompilerFactory(compilerFactory)
                .build();
        return new Builder()
                .setEngine(engine)
View Full Code Here

Examples of ch.grengine.sources.Sources

            throw new IllegalArgumentException("Dir mode is null.");
        }
        CompilerFactory compilerFactory = new DefaultGroovyCompilerFactory(config);
        TopCodeCacheFactory topCodeCacheFactory = new DefaultTopCodeCacheFactory(compilerFactory);
        Engine engine = new LayeredEngine.Builder().setTopCodeCacheFactory(topCodeCacheFactory).build();
        Sources sources = new DirBasedSources.Builder(dir)
                .setCompilerFactory(compilerFactory)
                .setDirMode(dirMode)
                .build();
        return new Builder()
                .setEngine(engine)
View Full Code Here

Examples of ch.grengine.sources.Sources

        CompilerFactory compilerFactory = new DefaultGroovyCompilerFactory(config);
        TopCodeCacheFactory topCodeCacheFactory = new DefaultTopCodeCacheFactory(compilerFactory);
        Engine engine = new LayeredEngine.Builder().setTopCodeCacheFactory(topCodeCacheFactory).build();
        SourceFactory sourceFactory = new DefaultSourceFactory.Builder().setTrackUrlContent(true).build();
        Set<Source> sourceSet = SourceUtil.urlsToSourceSet(sourceFactory, urls);
        Sources sources = new FixedSetSources.Builder(sourceSet)
                .setName("URL Sources")
                .setCompilerFactory(compilerFactory)
                .build();
        return new Builder()
                .setEngine(engine)
View Full Code Here

Examples of org.eclipse.bpel.model.Sources

        if (result == null) result = caseWSDLElement(targets);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case BPELPackage.SOURCES: {
        Sources sources = (Sources)theEObject;
        Object result = caseSources(sources);
        if (result == null) result = caseExtensibleElement(sources);
        if (result == null) result = caseExtensibleElement_1(sources);
        if (result == null) result = caseWSDLElement(sources);
        if (result == null) result = defaultCase(theEObject);
View Full Code Here

Examples of org.eclipse.bpel.model.Sources

    Node firstChild = activityElement.getFirstChild();
    Targets targets = activity.getTargets();
    if (targets != null) {
      activityElement.insertBefore(targets2XML(targets), firstChild);
    }
    Sources sources = activity.getSources();
    if (sources != null) {
      activityElement.insertBefore(sources2XML(sources), firstChild);
    }

  } 
View Full Code Here

Examples of org.eclipse.bpel.model.Sources

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetSources(Sources newSources, NotificationChain msgs) {
    Sources oldSources = sources;
    sources = newSources;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, BPELPackage.ACTIVITY__SOURCES, oldSources, newSources);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

Examples of org.eclipse.bpel.model.Sources

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @customized
   */
  public void setActivity(Activity newActivity) {
    Sources sources = newActivity.getSources();
    if (sources == null) {
      sources = BPELFactory.eINSTANCE.createSources();
      newActivity.setSources(sources);
    }
    sources.getChildren().add(this);
  }
View Full Code Here

Examples of org.eclipse.bpel.model.Sources

            targets.getChildren().add(target);
          }
        }       
      }     
      if (flowActivity.sources().length > 0){
        Sources sources = BPELFactory.eINSTANCE.createSources();
        activity.setSources(sources);     
        for(int i=0; i < flowActivity.sources().length; i++){
          FlowLinkSource linkSource = flowActivity.sources()[i];
          Link link = linkMap.get(linkSource.name());
          if (link == null){
            link = BPELFactory.eINSTANCE.createLink();
            link.setName(linkSource.name());
            linkMap.put(linkSource.name(), link);
            flow.getLinks().getChildren().add(link);
          }                           
          Source source = BPELFactory.eINSTANCE.createSource();
          source.setLink(link);
          source.setActivity(activity);
          Condition cond = BPELFactory.eINSTANCE.createCondition();
          cond.setBody(linkSource.transitionCondition());
          source.setTransitionCondition(cond);
          sources.getChildren().add(source);
        }
      }
    }
  }
View Full Code Here

Examples of org.glite.lb.Sources

            if (job.getSequenceCode() != null) {
              //  ctxd.setSeqCode(new SeqCode(SeqCode.CREAM, "no_seqcodes_with_cream_register"));
           // } else {
                SeqCode sc = new SeqCode(SeqCode.CREAMWMS, job.getSequenceCode());
                sc.incrementSeqCode(new Sources(Sources.CREAM_EXECUTOR));

                job.setSequenceCode(sc.toString());

                //ctxd.setSeqCode(sc);

                if (jobDB != null) {
                    try {
                       jobDB.update(job);
                    } catch (DatabaseException ex) {
                        throw new LBException(ex.getMessage());
                    }
                }
            }

           // ctxd.setSource(new Sources(Sources.CREAM_EXECUTOR));

            EventRegJob reg = new EventRegJob();
            reg.setNs(job.getCreamURL());
            reg.setJobtype(EventRegJob.Jobtype.CREAM);

            //ctxd.log(reg);

            ContextIL ctx = new ContextIL(ILPrefix);
            ctx.setJobid(lbjob);

            if (job.getSequenceCode() == null) {
                ctx.setSeqCode(new SeqCode(SeqCode.CREAM, "no_seqcodes_with_cream_register_cheat"));
            } else {
                ctx.setSeqCode(new SeqCode(SeqCode.CREAM, job.getSequenceCode()));
            }

            ctx.setSource(new Sources(Sources.CREAM_EXECUTOR));
            ctx.setUser(job.getExtraAttribute("USER_DN_X500"));

            //ctx.setUser(ctxd.getUser());
            reg.setJdl(job.getJDL());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.