Package org.broadleafcommerce.common.resource

Examples of org.broadleafcommerce.common.resource.GeneratedResource


        return "admin/components/ruleBuilder-options.js".equals(path);
    }

    @Override
    public Resource getFileContents(String path, List<Resource> locations) {
        return new GeneratedResource(ruleBuilderEnumOptions.getOptionValues().getBytes(), path);
    }
View Full Code Here


       
        // Minify the resource
        byte[] minifiedBytes = minifyService.minify(versionedBundleName, bytes);
       
        // Create our GenerateResource that holds our combined and (potentially) minified bundle
        GeneratedResource r = new GeneratedResource(minifiedBytes, versionedBundleName);
        return r;
    }
View Full Code Here

        }
       
        LOG.debug("Attempting to minifiy " + unminifiedResource.getFilename());
        byte[] minifiedBytes = minifyService.minify(unminifiedResource.getFilename(), bytes);

        return new GeneratedResource(minifiedBytes, unminifiedResource.getFilename());
    }
View Full Code Here

          if (StringUtils.isNotBlank(siteBaseUrl)) {
              newContents = newContents.replace("//BLC-SITE-BASEURL", siteBaseUrl);
          }
        }
     
        GeneratedResource gr = new GeneratedResource(newContents.getBytes(), path);
        gr.setHashRepresentation(String.valueOf(contents.hashCode()));
        return gr;
    }
View Full Code Here

TOP

Related Classes of org.broadleafcommerce.common.resource.GeneratedResource

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.