Ivo K. Koga wrote:
I'm trying to instantiate a class from one bundle inside another. Can
I do
it? Maybe exporting from one and import from another. Is that the point?
Well, you can do Bundle.loadClass() on the bundle from which you wish to
load the class and then just do Class.newInstance() on it. However,
unless you have imported the class, then you will not be able to cast to
the class directly and will have to use reflection.
If you import the class' package from the bundle, then there is nothing
special you need to do, just the normal "new MyClass"...
-> richard