public class CustomResourceLocator
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
CustomResourceLocator.ResourceLocator |
static class |
CustomResourceLocator.SearchingClassPathInDevMode |
Constructor and Description |
---|
CustomResourceLocator(ConfigMap config,
ResourceUtils r) |
Modifier and Type | Method and Description |
---|---|
static CustomResourceLocator.ResourceLocator |
getLocatorFor(java.lang.String url,
ConfigMap config)
returns the first known locator for the given url/config pair
|
java.io.InputStream |
getResourceFromUrl(java.lang.String url)
finds the file indicated at the URL, using some rewrites if necessary to work around some known issues.
|
static void |
registerAlternateLocator(CustomResourceLocator.ResourceLocator locator) |
public CustomResourceLocator(ConfigMap config, ResourceUtils r)
public static void registerAlternateLocator(CustomResourceLocator.ResourceLocator locator)
public static CustomResourceLocator.ResourceLocator getLocatorFor(java.lang.String url, ConfigMap config)
public java.io.InputStream getResourceFromUrl(java.lang.String url)
in particular, eclipse often does not copy WAR files as instructed by maven, so brooklyn.war might not be found; less important now that WARs are run separately, via OSGi (in prod) or node (in dev), but kept in case custom WARs are ever added to legacy webserver code