Examples of addResource()


Examples of org.constretto.internal.store.IniFileConfigurationStore.addResource()

            IniFileConfigurationStore iniFileConfigurationStore = new IniFileConfigurationStore();
            PropertiesStore propertyFileConfigurationStore = new PropertiesStore();

            for (String location : locations) {
                if (location.toLowerCase().endsWith(".ini")) {
                    iniFileConfigurationStore.addResource(Resource.create(location));
                } else if (location.toLowerCase().endsWith(".properties")) {
                    propertyFileConfigurationStore.addResource(Resource.create(location));
                }
            }
            builder = builder.addConfigurationStore(iniFileConfigurationStore);
View Full Code Here

Examples of org.constretto.internal.store.PropertiesStore.addResource()

            for (String location : locations) {
                if (location.toLowerCase().endsWith(".ini")) {
                    iniFileConfigurationStore.addResource(Resource.create(location));
                } else if (location.toLowerCase().endsWith(".properties")) {
                    propertyFileConfigurationStore.addResource(Resource.create(location));
                }
            }
            builder = builder.addConfigurationStore(iniFileConfigurationStore);
            builder = builder.addConfigurationStore(propertyFileConfigurationStore);
            if(includeSystemProperties){
View Full Code Here

Examples of org.davinci.server.review.Version.addResource()

            NodeList resources = versionElement.getElementsByTagName("resource");
            for (int j = 0; j < resources.getLength(); j++) {
              Element resource = (Element) resources.item(j);

              String path = resource.getAttribute("path");
              version.addResource(path);
            }
            objects.add(version);

          }
        } catch (ParserConfigurationException e) {
View Full Code Here

Examples of org.drools.core.rule.MapBackedClassLoader.addResource()

                 while ( (len = jis.read( buf )) >= 0 ) {
                     out.write( buf,
                                0,
                                len );
                 }
                 loader.addResource( entry.getName(),
                                     out.toByteArray() );
             }
         }

         List<JarInputStream> jarInputStreams = new ArrayList<JarInputStream>();
View Full Code Here

Examples of org.drools.guvnor.client.asseteditor.drools.serviceconfig.ServiceKAgentConfig.addResource()

            kbase1.addKsession(ksession2);

            final ServiceKAgentConfig kagent1 = new ServiceKAgentConfig("kagent1");
            kagent1.setNewInstance(false);
            kagent1.setUseKBaseClassloader(true);
            kagent1.addResource(resources.get(0));
            kagent1.addResource(resources.get(1));

            final ServiceKAgentConfig kagent2 = new ServiceKAgentConfig("kagent2");
            kagent2.setNewInstance(false);
View Full Code Here

Examples of org.drools.guvnor.client.asseteditor.drools.serviceconfig.ServiceKBaseConfig.addResource()

            kbase1.addKsession(ksession2);

            addKBase(kbase1);

            final ServiceKBaseConfig kbase2 = new ServiceKBaseConfig("kbase2");
            kbase2.addResource(new AssetReference("myPkg", "ax", "changeset", "http://localhost/cd/source", "uuidx9"));
            kbase2.setAssetsUser("admin");
            kbase2.setAssetsPassword("admin");
            kbase2.setMbeans(true);
            kbase2.setEventProcessingMode(STREAM);
View Full Code Here

Examples of org.drools.rule.MapBackedClassLoader.addResource()

                    ByteArrayOutputStream out = new ByteArrayOutputStream();
                    while ((len = jis.read(buf)) >= 0) {
                        out.write(buf, 0, len);
                    }

                    loader.addResource(entry.getName(), out.toByteArray());
                }
            }

        } catch (IOException e) {
            fail("failed to read the jar");
View Full Code Here

Examples of org.freerealm.property.ContainerProperty.addResource()

        for (Node subNode = node.getFirstChild(); subNode != null; subNode = subNode.getNextSibling()) {
            if (subNode.getNodeType() == Node.ELEMENT_NODE) {
                if (subNode.getNodeName().equals("Resource")) {
                    String resourceNameValue = subNode.getFirstChild().getNodeValue();
                    Resource resource = realm.getResourceManager().getResource(resourceNameValue);
                    containerProperty.addResource(resource);
                } else if (subNode.getNodeName().equals("UnitType")) {
                    String unitTypeIdValue = subNode.getFirstChild().getNodeValue();
                    int unitTypeId = Integer.parseInt(unitTypeIdValue);
                    containerProperty.addUnitType(unitTypeId);
                } else if (subNode.getNodeName().equals("Population")) {
View Full Code Here

Examples of org.geoserver.wps.resource.WPSResourceManager.addResource()

        File file = new File(directory, m_sFilename);

        try {
            ShapefileDataStore dataStore = new ShapefileDataStore(DataUtilities.fileToURL(file));
            dataStore.createSchema(m_FeatureType);
            manager.addResource(new ShapefileResource(dataStore, directory));
           
            return dataStore;
        } catch(Throwable t) {
            LOGGER.log(Level.SEVERE, "Could not create shapefile output ", t);
            IOUtils.delete(directory);
View Full Code Here

Examples of org.gudy.azureus2.plugins.update.UpdateInstaller.addResource()

                      installer.addMoveAction( shared_options.getAbsolutePath(), old_shared_options.getAbsolutePath());
                     
                      if ( !local_options.exists()){

                        installer.addResource( "local_options", new ByteArrayInputStream( options.getBytes( "UTF-8" )));
                       
                        installer.addMoveAction( "local_options", local_options.getAbsolutePath());
                      }                           

                      installer.addResource( "redirect", new ByteArrayInputStream( ( redirect + "\r\n" ).getBytes( "UTF-8" )));
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.