org.apache.shindig.gadgets.features
Class BrowserSpecificFeatureResource.Loader
java.lang.Object
org.apache.shindig.gadgets.features.FeatureResourceLoader
org.apache.shindig.gadgets.features.BrowserSpecificFeatureResource.Loader
- Enclosing class:
- BrowserSpecificFeatureResource
public static class BrowserSpecificFeatureResource.Loader
- extends FeatureResourceLoader
Simple FeatureResourceLoader implementation that wraps all resource loads in
a browser-filtering delegator.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BrowserSpecificFeatureResource.Loader
@Inject
public BrowserSpecificFeatureResource.Loader(com.google.inject.Provider<UserAgent> uaProvider)
load
public FeatureResource load(Uri uri,
Map<String,String> attribs)
throws GadgetException
- Description copied from class:
FeatureResourceLoader
- Primary, and only public, method of FeatureResourceLoader. Loads the resource
keyed at the given
uri, 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.
- Overrides:
load in class FeatureResourceLoader
- Parameters:
uri - Uri of resource to be loaded.attribs - Attributes decorating the resource in the corresponding feature.xml
- Returns:
- FeatureResource object providing content and debugContent loading capability.
- Throws:
GadgetException - If any failure occurs during this process.
Copyright © 2007-2012. All Rights Reserved.