Announcement Announcement Module
Collapse

Spring Dynamic Modules forum decommissioned in favor of Eclipse Gemini Blueprint

With the official first release of Eclipse Gemini Blueprint shipped, the migration of the Spring Dynamic Modules code base to the Eclipse Foundation, as part of the Gemini project, has been completed.

As such, this forum has been decommissioned in favour of the Eclipse Gemini forums.
See more
See less
Java code to create OSGi list Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Java code to create OSGi list

    Hi All,

    Could someone please help me with creating OSGi list using java code because I have a start level issues with the order in which I load the bundles, so I need a quick solution and apparently this seems to be quick and dirty way to implement.

    For example:
    Code:
    final TestServiceBean testServiceBean = new TestServiceBean();
    			context.registerService(TestService.class.getName(),
    					testServiceBean, new Hashtable());
    The above code snippet registers the TestService as an OSGi service, I want the code that allows me to create an OSGi list
    Code:
           
               <osgi:list id="testPlugins"
    		interface="TestPlugin"
    		cardinality="0..N">
    		<osgi:listener ref="testService" bind-method="pluginBound"
    			unbind-method="pluginUnbound" />
    	</osgi:list>
    Thanks & Regards,
    Aravind Chennuru
Working...
X