X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-dom-broker%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fdom%2Fbroker%2Fosgi%2FProxyFactory.java;h=c0eb5d55da5825ab8efb1350c2c6e1b5cd68a0af;hb=35d50d7b5b69ebb08c753a699bf0aa1e645027fe;hp=2ce2bac86227f2e9b0decf770a68dea7f5bcd1bb;hpb=a6a97a57081df63432dde5a6b1613eb779b74d79;p=controller.git diff --git a/opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/sal/dom/broker/osgi/ProxyFactory.java b/opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/sal/dom/broker/osgi/ProxyFactory.java index 2ce2bac862..c0eb5d55da 100644 --- a/opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/sal/dom/broker/osgi/ProxyFactory.java +++ b/opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/sal/dom/broker/osgi/ProxyFactory.java @@ -8,18 +8,17 @@ package org.opendaylight.controller.sal.dom.broker.osgi; import java.util.Arrays; - +import org.opendaylight.controller.md.sal.dom.api.DOMDataBroker; import org.opendaylight.controller.md.sal.dom.api.DOMMountPointService; import org.opendaylight.controller.sal.core.api.BrokerService; -import org.osgi.framework.ServiceReference; +import org.opendaylight.controller.sal.core.api.RpcProvisionRegistry; import org.opendaylight.controller.sal.core.api.data.DataBrokerService; import org.opendaylight.controller.sal.core.api.data.DataProviderService; -import org.opendaylight.controller.sal.core.api.notify.NotificationPublishService; -import org.opendaylight.controller.sal.core.api.notify.NotificationService; import org.opendaylight.controller.sal.core.api.model.SchemaService; import org.opendaylight.controller.sal.core.api.mount.MountProvisionService; -import org.opendaylight.controller.sal.core.api.RpcProvisionRegistry; -import org.opendaylight.controller.md.sal.dom.api.DOMDataBroker; +import org.opendaylight.controller.sal.core.api.notify.NotificationPublishService; +import org.opendaylight.controller.sal.core.api.notify.NotificationService; +import org.osgi.framework.ServiceReference; @SuppressWarnings("unchecked") public class ProxyFactory { @@ -32,6 +31,7 @@ public class ProxyFactory { return ((T) _createProxyImpl); } + @Deprecated private static Object _createProxyImpl(final ServiceReference ref, final DataBrokerService service) { @@ -39,6 +39,7 @@ public class ProxyFactory { ((ServiceReference) ref), service); } + @Deprecated private static Object _createProxyImpl(final ServiceReference ref, final DataProviderService service) { @@ -60,6 +61,7 @@ public class ProxyFactory { ((ServiceReference) ref), service); } + @Deprecated private static Object _createProxyImpl(final ServiceReference ref, final MountProvisionService service) { @@ -98,8 +100,7 @@ public class ProxyFactory { private static Object _createProxyImpl(final ServiceReference reference, final BrokerService service) { - throw new IllegalArgumentException("Not supported class: " - + service.getClass().getName()); + return service; } private static Object createProxyImpl(final ServiceReference ref,