public class OsgiBrooklynClassLoadingContext extends AbstractBrooklynClassLoadingContext
Constructor and Description |
---|
OsgiBrooklynClassLoadingContext(ManagementContext mgmt,
java.lang.String catalogItemId,
java.util.Collection<CatalogItem.CatalogBundle> bundles) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.Collection<CatalogItem.CatalogBundle> |
getBundles() |
java.lang.String |
getCatalogItemId() |
java.net.URL |
getResource(java.lang.String name)
As
ClassLoader.getResource(String) |
java.lang.Iterable<java.net.URL> |
getResources(java.lang.String name)
As
ClassLoader.getResources(String) but returning an Iterable rather than
an Enumeration . |
int |
hashCode() |
java.lang.String |
toString() |
Maybe<java.lang.Class<?>> |
tryLoadClass(java.lang.String className) |
getManagementContext, loadClass, loadClass, tryLoadClass
public OsgiBrooklynClassLoadingContext(ManagementContext mgmt, java.lang.String catalogItemId, java.util.Collection<CatalogItem.CatalogBundle> bundles)
public java.util.Collection<CatalogItem.CatalogBundle> getBundles()
public Maybe<java.lang.Class<?>> tryLoadClass(java.lang.String className)
tryLoadClass
in interface BrooklynClassLoadingContext
tryLoadClass
in class AbstractBrooklynClassLoadingContext
public java.lang.String toString()
toString
in class AbstractBrooklynClassLoadingContext
public int hashCode()
hashCode
in class AbstractBrooklynClassLoadingContext
public boolean equals(java.lang.Object obj)
equals
in class AbstractBrooklynClassLoadingContext
public java.net.URL getResource(java.lang.String name)
BrooklynClassLoadingContext
ClassLoader.getResource(String)
public java.lang.Iterable<java.net.URL> getResources(java.lang.String name)
BrooklynClassLoadingContext
ClassLoader.getResources(String)
but returning an Iterable
rather than
an Enumeration
.public java.lang.String getCatalogItemId()