I am always trying to minimize risk - and with my proposal, we won’t run into trouble if we ever split the interface and the default implementation in different bundles :-)

Am 23 Nov 2013 um 22:31 schrieb Chris Jackson <notifications@github.com>:

> In bundles/ui/org.openhab.ui/OSGI-INF/chartservlet.xml:
> 
> > +    All rights reserved. This program and the accompanying materials
> > +    are made available under the terms of the Eclipse Public License v1.0
> > +    which accompanies this distribution, and is available at
> > +    http://www.eclipse.org/legal/epl-v10.html
> > +
> > +-->
> > +<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" activate="activate" deactivate="deactivate" name="org.openhab.ui.chart">
> > +   <implementation class="org.openhab.ui.internal.chart.ChartServlet"/>
> > +   
> > +   <service>
> > +      <provide interface="org.osgi.service.cm.ManagedService"/>
> > +   </service>
> > +   <property name="service.pid" type="String" value="org.openhab.chart"/>
> > +   
> > +   <reference bind="setItemUIRegistry" cardinality="1..1" interface="org.openhab.ui.items.ItemUIRegistry" name="ItemUIRegistry" policy="dynamic" unbind="unsetItemUIRegistry"/>
> > +   <reference bind="addChartProvider" cardinality="1..n" interface="org.openhab.ui.chart.ChartProvider" name="ChartProvider" policy="dynamic" unbind="removeChartProvider"/>
> The reason I used 1 is because the default servlet is in the same bundle, so it should (I think?) always have access to the default.
> I'm happy to change it as you suggest, but do you think it's possible for the bundle to load without registering the default servlet?
> 
> —
> Reply to this email directly or view it on GitHub.
>