public class JavaBrooklynClassLoadingContext extends AbstractBrooklynClassLoadingContext
Constructor and Description |
---|
JavaBrooklynClassLoadingContext(ManagementContext mgmt,
java.lang.ClassLoader loader)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static JavaBrooklynClassLoadingContext |
create(java.lang.ClassLoader loader)
Deprecated.
since 0.7.0 only for legacy catalog items which provide a non-osgi loader; see
newDefault(ManagementContext) |
static JavaBrooklynClassLoadingContext |
create(ManagementContext mgmt) |
static JavaBrooklynClassLoadingContext |
create(ManagementContext mgmt,
java.lang.ClassLoader loader)
Deprecated.
since 0.7.0 only for legacy catalog items which provide a non-osgi loader; see
newDefault(ManagementContext) |
boolean |
equals(java.lang.Object obj) |
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() |
static JavaBrooklynClassLoadingContext |
newDefault(ManagementContext mgmt)
Deprecated.
|
java.lang.String |
toString() |
Maybe<java.lang.Class<?>> |
tryLoadClass(java.lang.String className) |
getManagementContext, loadClass, loadClass, tryLoadClass
@Deprecated public JavaBrooklynClassLoadingContext(ManagementContext mgmt, java.lang.ClassLoader loader)
@Deprecated public static JavaBrooklynClassLoadingContext create(java.lang.ClassLoader loader)
newDefault(ManagementContext)
@Deprecated public static JavaBrooklynClassLoadingContext create(ManagementContext mgmt, java.lang.ClassLoader loader)
newDefault(ManagementContext)
public static JavaBrooklynClassLoadingContext create(ManagementContext mgmt)
@Deprecated public static JavaBrooklynClassLoadingContext newDefault(ManagementContext mgmt)
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
.