Examples of addResource()


Examples of aQute.bnd.deployer.repository.CapabilityIndex.addResource()

        CapabilityIndex index = projectMap.get(project);
        if (index == null) {
            index = new CapabilityIndex();
            projectMap.put(project, index);
        }
        index.addResource(resource);
    }

    public Map<Requirement,Collection<Capability>> findProviders(Collection< ? extends Requirement> requirements) {
        Map<Requirement,Collection<Capability>> result = new HashMap<Requirement,Collection<Capability>>();
        for (Requirement requirement : requirements) {
View Full Code Here

Examples of aQute.bnd.service.repository.SearchableRepository.addResource()

    private void processResource(ResourceDescriptor resource, MultiStatus status, IProgressMonitor monitor) {
        SearchableRepository repo = depsPage.getRepository();
        try {
            if (!resource.included)
                repo.addResource(resource);
        } catch (Exception e) {
            status.add(new Status(IStatus.ERROR, Plugin.PLUGIN_ID, 0, "Error adding resource to local JPM4J index: " + resource.bsn + " [" + resource.version + "]", e));
        }
    }
View Full Code Here

Examples of ca.uhn.fhir.model.api.Bundle.addResource()

        }
      } else {
        ourLog.trace("No narrative generator specified");
      }

      bundle.addResource(next, theContext, theServerBase);
    }

    bundle.getTotalResults().setValue(theTotalResults);
    return bundle;
  }
View Full Code Here

Examples of ca.uhn.fhir.model.dstu.resource.Conformance.Rest.addResource()

    Set<RestfulOperationSystemEnum> systemOps = new HashSet<RestfulOperationSystemEnum>();

    for (ResourceBinding next : myRestfulServer.getResourceBindings()) {

      Set<RestfulOperationTypeEnum> resourceOps = new HashSet<RestfulOperationTypeEnum>();
      RestResource resource = rest.addResource();

      String resourceName = next.getResourceName();
      RuntimeResourceDefinition def = myRestfulServer.getFhirContext().getResourceDefinition(resourceName);
      resource.getType().setValue(def.getName());
      resource.getProfile().setId(new IdDt(def.getResourceProfile()));
View Full Code Here

Examples of co.cask.cdap.common.conf.CConfiguration.addResource()

    }

    ByteArrayInputStream bin = new ByteArrayInputStream(data);
    CConfiguration cConfiguration = CConfiguration.create();
    cConfiguration.clear();
    cConfiguration.addResource(bin);
    return cConfiguration;
  }
}
View Full Code Here

Examples of com.atlassian.plugin.test.PluginJarBuilder.addResource()

            for (int x=0; x<dirs.length - 1; x++)
            {
                pwd.append(dirs[x]).append("/");
                if (allDirs.add(pwd.toString()))
                {
                    builder.addResource(pwd.toString(), "");
                }
            }
        }
        File jar = builder.buildWithNoManifest();
        File zip = new File(jar.getPath() + ".zip");
View Full Code Here

Examples of com.dotcms.repackage.net.sf.hibernate.cfg.Configuration.addResource()

      Configuration cfg = new Configuration().configure();

      if (DbConnectionFactory.isMySql()) {
        //http://jira.dotmarketing.net/browse/DOTCMS-4937
        cfg.setNamingStrategy(new LowercaseNamingStrategy());
        cfg.addResource("com/dotmarketing/beans/DotCMSId.hbm.xml");
        cfg.addResource("com/dotmarketing/beans/DotCMSId_NOSQLGEN.hbm.xml");
        getPluginsHBM("Id",cfg);
        cfg.setProperty("hibernate.dialect", "com.dotcms.repackage.net.sf.hibernate.dialect.MySQLDialect");
      } else if (DbConnectionFactory.isPostgres()) {
        cfg.addResource("com/dotmarketing/beans/DotCMSSeq.hbm.xml");
View Full Code Here

Examples of com.fs.pxe.sfwk.deployment.ExplodedSarFile.addResource()

        bc.setProcessWSDL(new URI(wsdlUrl.toExternalForm()));
        bc.setOutputFile(tmpBar);
        bc.compile(bpelUrl);

        sf.setSystemDescriptor(sd);
        sf.addResource("a.cbp", tmpBar);

        for (Iterator it = resources.keySet().iterator(); it.hasNext();) {
            String name = (String) it.next();
            sf.addResource(name, new URL((String) resources.get(name)));
        }
View Full Code Here

Examples of com.github.dandelion.datatables.core.generator.javascript.JavascriptGenerator.addResource()

      .addParameter("dandelion-datatables", DelegateLocator.DELEGATED_CONTENT_PARAM,
            DatatablesConfigurator.getJavascriptGenerator(), false);
   
    // Buffering generated Javascript
    JavascriptGenerator javascriptGenerator = AssetRequestContext.get(request).getParameterValue("dandelion-datatables", DelegateLocator.DELEGATED_CONTENT_PARAM);
    javascriptGenerator.addResource(jsResource);
  }
}
View Full Code Here

Examples of com.jigen.ant.Jigen.addResource()

   
    antJigen.addProduct    (importProduct    (jigen.getProduct()));
    antJigen.addEnvironment(importEnvironment(jigen.getEnvironment()));
   
    for (com.jigen.xsd.Resource resource : jigen.getResourceArray())
      antJigen.addResource(importResource(resource));
   
    for (com.jigen.xsd.Runnable resource : jigen.getRunnableArray())
      antJigen.addRunnable(importRunnable(resource));
   
    for (com.jigen.xsd.Installer installer : jigen.getInstallerArray())
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.