Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Passing an external object to an OSGi Bundle
Passing an external object to an OSGi Bundle [message #545981] Fri, 09 July 2010 19:12
ib  is currently offline ib Friend
Messages: 2
Registered: July 2010
Junior Member
Hi,

I am trying to figure out a way to pass an external object to my OSGi bundles. Here is what I am doing:

I have an external class from where I am starting up my eclipse bundles:

public class MyTestClass
{
    public void myMethod(Object interestingObj)
    {
        String[] arguments = {"-consolelog",  "-noExit",  "-product", "myeclipse.product", "-name",  "My Product", "-install",  "\\MyProductDir", "-configuration",   "\\MyProductDir\\configuration"};
    	
    	
        Main.main(arguments);
    }
}


I would like to pass around my interestingObj to the Activator of my bundle. I doon't know how to do it.

Thanks in advance.

Thanks
Previous Topic:Equinox Framework Launch Config load all bundles.
Next Topic:org.osgi.framework.FrameworkUtil.getBundle(Class) method, where is it?
Goto Forum:
  


Current Time: Sat Apr 20 01:54:10 GMT 2024

Powered by FUDForum. Page generated in 0.02869 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top