Brooklyn

brooklyn.launcher.config
[Java] Class CustomResourceLocator

java.lang.Object
  brooklyn.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

r

protected final ResourceUtils r


 
Constructor Detail

CustomResourceLocator

public CustomResourceLocator(ConfigMap config, ResourceUtils r)


 
Method Detail

getLocatorFor

public static CustomResourceLocator.ResourceLocator getLocatorFor(java.lang.String url, ConfigMap config)
returns the first known locator for the given url/config pair


getResourceFromUrl

public 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.

in particular, eclipse often does not copy WAR files as instructed by maven, so brooklyn.war might not be found


registerAlternateLocator

public static void registerAlternateLocator(CustomResourceLocator.ResourceLocator locator)


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.