Examples of store()


Examples of org.apache.aries.application.ApplicationMetadata.store()

        storeApplication(app, directory, getUnpackApplicationBundles());
    }
   
    protected void storeApplication(AriesApplication app, File directory, boolean unpack) throws IOException {
        ApplicationMetadata appMetadata = app.getApplicationMetadata();
        appMetadata.store(new File(directory, AppConstants.APPLICATION_MF));

        DeploymentMetadata deploymentMetadata = app.getDeploymentMetadata();
        if (deploymentMetadata != null) {
            deploymentMetadata.store(new File(directory, AppConstants.DEPLOYMENT_MF));
        }
View Full Code Here

Examples of org.apache.aries.application.DeploymentMetadata.store()

        ApplicationMetadata appMetadata = app.getApplicationMetadata();
        appMetadata.store(new File(directory, AppConstants.APPLICATION_MF));

        DeploymentMetadata deploymentMetadata = app.getDeploymentMetadata();
        if (deploymentMetadata != null) {
            deploymentMetadata.store(new File(directory, AppConstants.DEPLOYMENT_MF));
        }
       
        for (BundleInfo bi : app.getBundleInfo()) {
          // bi.getLocation() will return a URL to the source bundle. It may be of the form
          // file:/path/to/my/file.jar, or
View Full Code Here

Examples of org.apache.aries.application.management.AriesApplication.store()

 
  @Test
  public void testStoreAndReload() throws Exception {
    AriesApplication app = createApplication (TEST_EBA);
    File dest = new File ("ariesApplicationManagerImplTest/stored.eba");
    app.store(dest);
   
    /* Dest should be a zip file with four entries:
     *  /foo.bar.widgets.jar
     *  /my.business.logic.jar
     *  /META-INF/APPLICATION.MF
View Full Code Here

Examples of org.apache.cocoon.caching.Cache.store()

                        xml = CachingSource.readXMLResponse(source, binary, this.manager);
                        response.setXMLResponse(xml);
                    }
                    // meta info is always set
                    response.setExtra(CachingSource.readMeta(source));
                    cache.store(this.cacheKey, response);
                }
                else if (response != null) {
                    // FIXME: There is a potential problem when the parent
                    // source has not yet been updated thus listing this
                    // source still as one of its children. We'll have to remove
View Full Code Here

Examples of org.apache.cocoon.profiling.data.ProfilingDataHolder.store()

        profilingData.setReturnValue(null);

        ProfilingDataHolder holder = (ProfilingDataHolder) applicationContext
                .getBean("org.apache.cocoon.profiling.data.ProfilingDataHolder");

        holder.store(id, profilingData);

        HashMap<String, Object> configuration = new HashMap<String, Object>();
        configuration.put("id", id);

        ProfilingGenerator profilingGenerator = new ProfilingGenerator();
View Full Code Here

Examples of org.apache.excalibur.store.Store.store()

                    Store store = null;
                    String id = Long.toHexString((hashCode()^HashUtil.hash(requestURI))+fragmentID);
                    try {
                        store = (Store) this.manager.lookup(Store.TRANSIENT_STORE);

                        store.store(id, this.serializer.getSAXFragment());
                    } catch (ComponentException ce) {
                        throw new SAXException("Could not lookup for transient store.", ce);
                    } catch (IOException ioe) {
                        throw new SAXException("Could not store fragment.", ioe);
                    } finally
View Full Code Here

Examples of org.apache.felix.cm.PersistenceManager.store()

                { getPidString(), newProperties } );

            setAutoProperties( newProperties, true );

            // persist new configuration
            localPersistenceManager.store( getPidString(), newProperties );

            // finally assign the configuration for use
            configure( newProperties );

            // if this is a factory configuration, update the factory with
View Full Code Here

Examples of org.apache.felix.utils.properties.Properties.store()

                file.readFully(buffer);
                Properties props = new Properties();
                props.load(new ByteArrayInputStream(buffer));
                callback.run(props);
                ByteArrayOutputStream baos = new ByteArrayOutputStream();
                props.store(baos, null);
                file.setLength(0);
                file.write(baos.toByteArray());
            }
        });
    }
View Full Code Here

Examples of org.apache.hadoop.gateway.filter.rewrite.spi.UrlRewriteRulesExporter.store()

  public static void store( UrlRewriteRulesDescriptor descriptor, String format, Writer writer ) throws IOException {
    UrlRewriteRulesExporter exporter = EXPORTERS.get( format );
    if( exporter == null ) {
      throw new IllegalArgumentException( RES.noExporterForFormat( format ) );
    }
    exporter.store( descriptor, writer );
  }

  private static Map<String, UrlRewriteRulesImporter> loadImporters() {
    Map<String, UrlRewriteRulesImporter> map = new ConcurrentHashMap<String, UrlRewriteRulesImporter>();
    map.put( "xml", new XmlUrlRewriteRulesImporter() );
View Full Code Here

Examples of org.apache.jackrabbit.core.data.LocalCache.store()

            data = new byte[100];
            random.nextBytes(data);
            byteMap.put("a3", data);

            cache.store("a1", new ByteArrayInputStream(byteMap.get("a1")));
            cache.store("a2", new ByteArrayInputStream(byteMap.get("a2")));
            cache.store("a3", new ByteArrayInputStream(byteMap.get("a3")));
            assertEquals(new ByteArrayInputStream(byteMap.get("a1")),
                cache.getIfStored("a1"));
            assertEquals(new ByteArrayInputStream(byteMap.get("a2")),
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.