public class BundleBasedUIResourceProvider extends Object implements UIResourceProvider
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
BundleBasedUIResourceProvider(String bundleResourcePath) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBundleResourcePaths(org.osgi.framework.Bundle bundle) |
org.osgi.framework.Bundle |
getBundle(String resourcePath) |
URL |
getUIResource(String name)
Returns a URL to the resource that is mapped to a specified path.
|
Set<String> |
getUIResourcePaths(String name)
Returns a directory-like listing of all the paths to resources within the web application whose longest sub-path
matches the supplied path argument.
|
void |
removeBundleResourcePaths(org.osgi.framework.Bundle bundle) |
public BundleBasedUIResourceProvider(String bundleResourcePath)
public URL getUIResource(String name)
UIResourceProvidergetUIResource in interface UIResourceProvidername - a String specifying the path to the resourcepublic Set<String> getUIResourcePaths(String name)
UIResourceProvidergetUIResourcePaths in interface UIResourceProvidername - partial path used to match the resources, which must start with a /public void addBundleResourcePaths(org.osgi.framework.Bundle bundle)
public void removeBundleResourcePaths(org.osgi.framework.Bundle bundle)
public org.osgi.framework.Bundle getBundle(String resourcePath)
Copyright © 2012-2015 The Apache Software Foundation. All Rights Reserved.