public interface ResourceBundlingService
ResourceBundleProcessor
to generate
bundles for static resources.Modifier and Type | Method and Description |
---|---|
boolean |
checkForRegisteredBundleFile(String versionedBundleName)
Returns true if the passed in name represents a versionedBundle
|
List<String> |
getAdditionalBundleFiles(String bundleName)
Through configuration, you can provide additional files that will be automatically included
for any bundle.
|
org.springframework.core.io.Resource |
rebuildBundledResource(String requestedBundleName)
Returns a newly rebuilt bundled resource given that the passed requestedBundleName had previously been built and cached/persisted via
the
resolveBundleResourceName method |
org.springframework.core.io.Resource |
resolveBundleResource(String versionedBundleResourceName)
Returns a Resource for passed in versionedBundleResourceName.
|
String |
resolveBundleResourceName(String requestedBundleName,
String mappingPrefix,
List<String> files)
Returns a file name representing a versioned copy of the bundle.
|
org.springframework.core.io.Resource rebuildBundledResource(String requestedBundleName)
resolveBundleResourceName
methodrequestedBundleName
- String resolveBundleResourceName(String requestedBundleName, String mappingPrefix, List<String> files)
First computes the bundle version by checking examining the files in the bundle.
If the bundle does not exist, this method will make a call to create it.
requestedBundleName
- org.springframework.core.io.Resource resolveBundleResource(String versionedBundleResourceName)
#getBundleResourceName(String, List)
versionedBundleResourceName
- List<String> getAdditionalBundleFiles(String bundleName)
bundleName
- boolean checkForRegisteredBundleFile(String versionedBundleName)
versionedBundleName
- Copyright © 2017. All rights reserved.