Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Jan N. Klug <[email protected]>
  • Loading branch information
J-N-K committed Apr 2, 2022
1 parent c6cece9 commit d78ed90
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,14 @@
import org.openhab.core.common.registry.AbstractRegistry;
import org.openhab.core.common.registry.Provider;
import org.openhab.core.persistence.registry.IdentifiablePersistenceServiceConfiguration;
import org.openhab.core.persistence.registry.ManagedPersistenceServiceConfigurationProvider;
import org.openhab.core.persistence.registry.PersistenceServiceConfigurationProvider;
import org.openhab.core.persistence.registry.PersistenceServiceConfigurationRegistry;
import org.openhab.core.persistence.registry.PersistenceServiceConfigurationRegistryChangeListener;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Reference;
import org.osgi.service.component.annotations.ReferenceCardinality;
import org.osgi.service.component.annotations.ReferencePolicy;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down Expand Up @@ -105,4 +109,13 @@ public void addRegistryChangeListener(PersistenceServiceConfigurationRegistryCha
public void removeRegistryChangeListener(PersistenceServiceConfigurationRegistryChangeListener listener) {
registryChangeListeners.remove(listener);
}

@Reference(cardinality = ReferenceCardinality.OPTIONAL, policy = ReferencePolicy.DYNAMIC)
protected void setManagedProvider(ManagedPersistenceServiceConfigurationProvider provider) {
super.setManagedProvider(provider);
}

protected void unsetManagedProvider(ManagedPersistenceServiceConfigurationProvider provider) {
super.unsetManagedProvider(provider);
}
}

0 comments on commit d78ed90

Please sign in to comment.