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)
OSGiToolsMXBean
getLoadClassOrigin
in interface OSGiToolsMXBean
bundleID
- The bundle to load the class from.clazz
- The class name to load.public String getResourceURL(long bundleID, String resource)
OSGiToolsMXBean
getResourceURL
in interface OSGiToolsMXBean
bundleID
- 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 © 2019 JBoss by Red Hat. All rights reserved.