+ @Activate
+ public GlobalBindingDOMCodecServices(@Reference(updated = "update") final OSGiBindingDOMCodecServices services) {
+ updateDelegate(services);
+ LOG.info("Global Binding/DOM Codec activated with generation {}", generation);
+ }
+
+ @Deactivate
+ void deactivate() {
+ delegate = null;
+ LOG.info("Global Binding/DOM Codec deactivated");
+ }
+
+ void update(final OSGiBindingDOMCodecServices services) {
+ updateDelegate(services);
+ LOG.info("Global Binding/DOM Codec updated to generation {}", generation);
+ }
+
+ private void updateDelegate(final OSGiBindingDOMCodecServices services) {
+ generation = services.getGeneration();
+ delegate = services.getService();
+ }
+