OSGi declarative services are explicitly allowed to have a bind method without a matching unbind method for a reference because "Once the component configuration is deactivated, SCR must discard all references to the component instance and component context associated with the activation."
I'm using the Apache Felix maven-scr-plugin to generate my service component XML from Java5 annotations. If I omit the "unbind" attribute from the @Reference annotation, then I get this failure:
[ERROR] @Reference: Missing method unbind for reference configuration at Java annotations in <classname>:<linenum>
Why is the SCR generator being so strict? Is there a way to tell it to tolerate an omitted unbind method? Perhaps I need to file a defect with Felix?
Of course, it would be easy to just add trivial unbind methods to my services but the spec says they are unneeded.