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 Mar 28, 2022
1 parent 213cc91 commit c56d40c
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 c56d40c

Please sign in to comment.