public static class BrowserSpecificFeatureResource.Loader extends FeatureResourceLoader
| Constructor and Description |
|---|
BrowserSpecificFeatureResource.Loader(com.google.inject.Provider<UserAgent> uaProvider) |
| Modifier and Type | Method and Description |
|---|---|
FeatureResource |
load(Uri uri,
Map<String,String> attribs)
Primary, and only public, method of FeatureResourceLoader.
|
fileHasChanged, getFileContent, getOptPath, getResourceContent, loadFile, loadResource, loadUri, setHttpFetcher, setSupportFileUpdates, setTimeSource@Inject public BrowserSpecificFeatureResource.Loader(com.google.inject.Provider<UserAgent> uaProvider)
public FeatureResource load(Uri uri, Map<String,String> attribs) throws GadgetException
FeatureResourceLoaderuri, which was decorated with the provided list of attributes.
The default implementation loads both file and res-schema resources using
ResourceLoader, attempting to load optimized content for files named [file].js as [file].opt.js.
Override this method to provide custom functionality. Basic loadFile, loadResource, and loadUri
methods are kept protected for easy reuse.load in class FeatureResourceLoaderuri - Uri of resource to be loaded.attribs - Attributes decorating the resource in the corresponding feature.xmlGadgetException - If any failure occurs during this process.Copyright © 2007-2012. All Rights Reserved.