public interface ResourceBundlingService
ResourceBundleProcessor
to generate
versioned names for bundles as well as the bundle content.Modifier and Type | Method and Description |
---|---|
List<String> |
getAdditionalBundleFiles(String bundleName) |
org.springframework.core.io.Resource |
getBundle(String versionedBundleName)
For the given versioned bundle name, returns a Resource that holds the contents of the combined, and
possibly minified (if enabled) bundle.
|
String |
getVersionedBundleName(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(String versionedBundle) |
String |
registerBundle(String bundleName,
List<String> files,
BroadleafResourceHttpRequestHandler handler)
Registers a new bundle with the given name to its files.
|
org.springframework.core.io.Resource getBundle(String versionedBundleName)
versionedBundleName
- String getVersionedBundleName(String unversionedBundleName)
unversionedBundleName
- String registerBundle(String bundleName, List<String> files, BroadleafResourceHttpRequestHandler handler) throws IOException
bundleName
- files
- handler
- IOException
boolean hasBundle(String versionedBundle)
versionedBundle
- Copyright © 2014. All rights reserved.