EclipseCon Europe 2016 - Tutorial - Building Nano Services with OSGi Declarative Services
https://www.eclipsecon.org/europe2016/session/building-nano-services-osgi-declarative-services
This tutorial is showing the usage of OSGi declarative services. It contains projects for Eclipse PDE (Plugin Development Environment) and as bnd/bndtools.
examples.<pde|bndtools>.service.api
examples.<pde|bndtools>.inverter
examples.<pde|bndtools>.configurable
It explains debugging via OSGi console, Apache Webconsole