Package com.github.dandelion.core.storage

Examples of com.github.dandelion.core.storage.BundleStorageUnit


    Map<String, String> locations2 = new HashMap<String, String>();
    locations.put("remote", "remoteURL2");
    locations.put("local", "localPath2");

    return newArrayList(
        new BundleStorageUnit("default", new HashSet<AssetStorageUnit>()),
        new BundleStorageUnit("fake", newLinkedHashSet(new AssetStorageUnit("name", "version", AssetType.js, locations), new AssetStorageUnit("name2", "version2", AssetType.js, locations2))));
  }
View Full Code Here


    ClassLoader classLoader = Thread.currentThread().getContextClassLoader();

    for (String resourcePath : resourcePaths) {
      try {
        InputStream configFileStream = classLoader.getResourceAsStream(resourcePath);
        BundleStorageUnit bsu = mapper.readValue(configFileStream, BundleStorageUnit.class);
        getLogger().debug("Parsed {}", bsu);
        bundles.add(bsu);
      }
      catch (IOException e) {
        StringBuilder sb = new StringBuilder("The file '");
View Full Code Here

TOP

Related Classes of com.github.dandelion.core.storage.BundleStorageUnit

Copyright © 2018 www.massapicom. 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.