|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbrooklyn.launcher.config.CustomResourceLocator
public class CustomResourceLocator
class which allows non-standard locators to be registered for URL's being loaded
Nested Class Summary | |
---|---|
interface |
CustomResourceLocator.ResourceLocator
|
static class |
CustomResourceLocator.SearchingClassPathInDevMode
|
Field Summary | |
---|---|
protected ResourceUtils |
r
|
Constructor Summary | |
CustomResourceLocator(ConfigMap config, ResourceUtils r)
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Field Detail |
---|
protected final ResourceUtils r
Constructor Detail |
---|
public CustomResourceLocator(ConfigMap config, ResourceUtils r)
Method Detail |
---|
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
public static void registerAlternateLocator(CustomResourceLocator.ResourceLocator locator)
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.