public class OSGiTools extends Object implements OSGiToolsMXBean
| Modifier and Type | Method and Description |
|---|---|
long |
getLoadClassOrigin(long bundleID,
String clazz)
Returns from what bundle the given class was loaded, when requested in the context of a certain bundle.
|
String |
getResourceURL(long bundleID,
String resource)
Returns the URL where the requested resource was found, when looked up in the context of a certain bundle.
|
public long getLoadClassOrigin(long bundleID,
String clazz)
OSGiToolsMXBeangetLoadClassOrigin in interface OSGiToolsMXBeanbundleID - The bundle to load the class from.clazz - The class name to load.public String getResourceURL(long bundleID, String resource)
OSGiToolsMXBeangetResourceURL in interface OSGiToolsMXBeanbundleID - The bundle to load the class from.resource - The resource name to load. The format is as defined in ClassLoader.getResource.null is returned.Copyright © 2016 JBoss by Red Hat. All rights reserved.