Merge pull request #34 from kaikreuzer/packagemgr

registered feature installer as a service so that it appears in the P…
pull/35/head
Kai Kreuzer 2016-04-15 17:57:49 +02:00
commit c9650f149f
2 changed files with 9 additions and 5 deletions

View File

@ -5,16 +5,17 @@
xsi:schemaLocation="http://eclipse.org/smarthome/schemas/config-description/v1.0.0
http://eclipse.org/smarthome/schemas/config-description-1.0.0.xsd">
<config-description uri="service:addons">
<config-description uri="system:addons">
<parameter name="package" type="text" required="true">
<label>Package</label>
<description>The runtime package to use for this openHAB instance</description>
<options>
<option value="minimal">Minimal</option>
<option value="standard">Standard</option>
<option value="standard">Demo</option>
<option value="demo">Demo</option>
</options>
<default>standard</default>
</parameter>
</config-description>
</config-description:config-descriptions>
</config-description:config-descriptions>

View File

@ -13,7 +13,10 @@
<implementation class="org.openhab.core.karaf.internal.FeatureInstaller"/>
<reference bind="setFeaturesService" cardinality="1..1" interface="org.apache.karaf.features.FeaturesService" name="FeaturesService" policy="static" unbind="unsetFeaturesService"/>
<property name="service.pid" type="String" value="org.openhab.addons"/>
<property name="service.config.description.uri" type="String" value="service:addons"/>
<property name="service.config.description.uri" type="String" value="system:addons"/>
<property name="service.config.label" type="String" value="Package"/>
<property name="service.config.category" type="String" value="core"/>
<property name="service.config.category" type="String" value="system"/>
<service>
<provide interface="org.openhab.core.karaf.internal.FeatureInstaller"/>
</service>>
</scr:component>