I am creating a package to connect to OSGi to provide the user with a function:
Usercase: User input the classname string and click "list" button, the corresponding class will be decompiled and show the text on GUI for user.
So here is my problem: I only have the class loader of my package, how can I get the OSGi container class loader to load a class by name from the entire OSGi container? (I expect that when OSGi starts, it will load all the packages and the entire class into memory, any class can be loaded with the OSGi container class loader, if it really exists and can)
Does anyone know how to do this? Sample codes are highly appreciated.
source
share