public class CustomResourceLocator extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
CustomResourceLocator.ResourceLocator |
static class |
CustomResourceLocator.SearchingClassPathInDevMode |
| Modifier and Type | Field and Description |
|---|---|
protected ResourceUtils |
r |
| Constructor and Description |
|---|
CustomResourceLocator(ConfigMap config,
ResourceUtils r) |
| Modifier and Type | Method and Description |
|---|---|
static CustomResourceLocator.ResourceLocator |
getLocatorFor(String url,
ConfigMap config)
returns the first known locator for the given url/config pair
|
InputStream |
getResourceFromUrl(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) |
protected final ResourceUtils r
public CustomResourceLocator(ConfigMap config, ResourceUtils r)
public static void registerAlternateLocator(CustomResourceLocator.ResourceLocator locator)
public static CustomResourceLocator.ResourceLocator getLocatorFor(String url, ConfigMap config)
public InputStream getResourceFromUrl(String url)
in particular, eclipse often does not copy WAR files as instructed by maven, so brooklyn.war might not be found
Copyright © 2012–2016 The Apache Software Foundation. All rights reserved.