public class UIResourceRegistry extends Object implements UIResourceProvider, org.osgi.framework.ServiceListener
| Constructor and Description |
|---|
UIResourceRegistry() |
| Modifier and Type | Method and Description |
|---|---|
URL |
getUIResource(String path)
Returns a URL to the resource that is mapped to a specified path.
|
Set<String> |
getUIResourcePaths(String path)
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 |
initialize(org.osgi.framework.BundleContext bundleContext) |
void |
serviceChanged(org.osgi.framework.ServiceEvent serviceEvent) |
void |
setDefaultUIResourceProvider(UIResourceProvider defaultUIResourceProvider) |
public void initialize(org.osgi.framework.BundleContext bundleContext)
public URL getUIResource(String path)
UIResourceProvidergetUIResource in interface UIResourceProviderpath - a String specifying the path to the resourcepublic Set<String> getUIResourcePaths(String path)
UIResourceProvidergetUIResourcePaths in interface UIResourceProviderpath - partial path used to match the resources, which must start with a /public void setDefaultUIResourceProvider(UIResourceProvider defaultUIResourceProvider)
public void serviceChanged(org.osgi.framework.ServiceEvent serviceEvent)
serviceChanged in interface org.osgi.framework.ServiceListenerCopyright © 2012-2015 The Apache Software Foundation. All Rights Reserved.