public interface ResourceBundlingService
ResourceBundleProcessor to generate
versioned names for bundles as well as the bundle content.| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
getAdditionalBundleFiles(java.lang.String bundleName) |
org.springframework.core.io.Resource |
getBundle(java.lang.String versionedBundleName)
For the given versioned bundle name, returns a Resource that holds the contents of the combined, and
possibly minified (if enabled) bundle.
|
java.lang.String |
getVersionedBundleName(java.lang.String unversionedBundleName)
For a given unversioned bundle name, such as "global.js", returns the currently known versioned bundle
name, such as "global12345.js".
|
boolean |
hasBundle(java.lang.String versionedBundle) |
java.lang.String |
registerBundle(java.lang.String bundleName,
java.util.List<java.lang.String> files,
BroadleafResourceHttpRequestHandler handler)
Registers a new bundle with the given name to its files.
|
org.springframework.core.io.Resource getBundle(java.lang.String versionedBundleName)
versionedBundleName - java.lang.String getVersionedBundleName(java.lang.String unversionedBundleName)
unversionedBundleName - java.lang.String registerBundle(java.lang.String bundleName,
java.util.List<java.lang.String> files,
BroadleafResourceHttpRequestHandler handler)
throws java.io.IOException
bundleName - files - handler - java.io.IOExceptionboolean hasBundle(java.lang.String versionedBundle)
versionedBundle - java.util.List<java.lang.String> getAdditionalBundleFiles(java.lang.String bundleName)
bundleName - Copyright © 2018. All Rights Reserved.