Class OSGiTools

    • Method Detail

      • getLoadClassOrigin

        public long getLoadClassOrigin​(long bundleID,
                                       String clazz)
        Description copied from interface: OSGiToolsMXBean
        Returns from what bundle the given class was loaded, when requested in the context of a certain bundle.
        Specified by:
        getLoadClassOrigin in interface OSGiToolsMXBean
        Parameters:
        bundleID - The bundle to load the class from.
        clazz - The class name to load.
        Returns:
        The bundle that served the class or -1 if the class could not be loaded.
      • getResourceURL

        public String getResourceURL​(long bundleID,
                                     String resource)
        Description copied from interface: OSGiToolsMXBean
        Returns the URL where the requested resource was found, when looked up in the context of a certain bundle.
        Specified by:
        getResourceURL in interface OSGiToolsMXBean
        Parameters:
        bundleID - The bundle to load the class from.
        resource - The resource name to load. The format is as defined in ClassLoader.getResource.
        Returns:
        The URL where the bundle with bundleID can find the resource in String form. If the resource cannot be found null is returned.