java - OSGi- Framework will only register certain Services -


my project composed of following bundles, define declarative services given .xml files:

characterbuilder.gui

<?xml version="1.0" encoding="utf-8"?> <scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" name="characterbuilder.gui">    <implementation class="characterbuilder.gui.applicationframe"/>    <reference bind="setmenuscripting" cardinality="1..1" interface="characterbuilder.scripting.menu.imenuscripting" name="imenuscripting" policy="dynamic"/> </scr:component> 

characterbuilder.pluginmanager

<?xml version="1.0" encoding="utf-8"?> <scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" name="characterbuilder.pluginmanager">    <implementation class="characterbuilder.pluginmanager.implementation.pluginmanager"/> </scr:component> 

characterbuilder.scripting

<?xml version="1.0" encoding="utf-8"?> <scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" name="characterbuilder.scripting">    <implementation class="characterbuilder.scripting.internal.characterbuilderscripting"/>    <reference bind="setgamesystem" cardinality="1..1" interface="characterbuilder.systemmanager.igamesystem" name="igamesystem" policy="static"/>    <reference bind="setxmlhandler" cardinality="1..1" interface="characterbuilder.xmlhandling.xmlhandler.ixmlhandler" name="ixmlhandler" policy="static"/>    <reference bind="setpluginmanager" cardinality="1..1" interface="systemplugin.manager.ipluginmanager" name="ipluginmanager" policy="static"/>    <service>       <provide interface="characterbuilder.scripting.menu.imenuscripting"/>    </service> </scr:component> 

characterbuilder.xmlhandling

<?xml version="1.0" encoding="utf-8"?> <scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" name="character.builder.xml.handling">    <implementation class="characterbuilder.xmlhandling.implementation.xmlhandler"/>    <service>       <provide interface="characterbuilder.xmlhandling.xmlhandler.ixmlhandler"/>    </service> </scr:component> 

characterbuilder.dummysystem

<?xml version="1.0" encoding="utf-8"?> <scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" name="dummysystem">    <implementation class="dummygamedefinition.systemmanager.dummysystemmanager"/>    <service>       <provide interface="characterbuilder.systemmanager.igamesystem"/>    </service> </scr:component> 

when use "services" command console registered services, ixmlhandler , igamesystem ever registered.

i've spent on dozen hours on last 3 days trying these services work , i'm worst off when started, because still haven't slightest clue , when started didn't feel frustrated , stupid.

first, bundles register these services started? banged head on same problem find in default run configuration eclipse/equinox not start automatically bundles.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -