All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.hawt.osgi.jmx.OSGiToolsMXBean Maven / Gradle / Ivy

There is a newer version: 2.17.7
Show newest version
package io.hawt.osgi.jmx;

public interface OSGiToolsMXBean {
    /**
     * Returns from what bundle the given class was loaded, when requested in the context of a certain bundle.
     * @param bundleID The bundle to load the class from.
     * @param clazz The class name to load.
     * @return The bundle that served the class or -1 if the class could not be loaded.
     * @throws IllegalArgumentException if an invalid bundle ID is provided.
     */
    long getLoadClassOrigin(long bundleID, String clazz);

    /**
     * Returns the URL where the requested resource was found, when looked up in the context of a certain bundle.
     * @param bundleID The bundle to load the class from.
     * @param resource The resource name to load. The format is as defined in {@code ClassLoader.getResource}.
     * @return The URL where the bundle with bundleID can find the resource in String form. If the resource
     * cannot be found {@code null} is returned.
     * @throws IllegalArgumentException if an invalid bundle ID is provided.
     */
    String getResourceURL(long bundleID, String resource);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy