X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-dom-broker%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fdom%2Fbroker%2Fosgi%2FProxyFactory.xtend;h=5b97443b92e455aafb8bcf54cffd1dbc29d2f1e9;hp=eb738673cb9d724ab830cd16edc56f4d560e4c8b;hb=6fd408a04fe4a3611843e2246ece6d7c34b76903;hpb=a8a5f3741b19fba443c0ee6bf0df663bf43ee034 diff --git a/opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/sal/dom/broker/osgi/ProxyFactory.xtend b/opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/sal/dom/broker/osgi/ProxyFactory.xtend index eb738673cb..5b97443b92 100644 --- a/opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/sal/dom/broker/osgi/ProxyFactory.xtend +++ b/opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/sal/dom/broker/osgi/ProxyFactory.xtend @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + */ package org.opendaylight.controller.sal.dom.broker.osgi import org.opendaylight.controller.sal.core.api.BrokerService @@ -7,6 +14,8 @@ 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 class ProxyFactory { @@ -30,10 +39,19 @@ class ProxyFactory { new NotificationServiceProxy(ref as ServiceReference, service); } + private static def dispatch createProxyImpl(ServiceReference ref, MountProvisionService service) { + new MountProviderServiceProxy(ref as ServiceReference, service); + } + + private static def dispatch createProxyImpl(ServiceReference ref, SchemaService service) { new SchemaServiceProxy(ref as ServiceReference, service); } + private static def dispatch createProxyImpl(ServiceReference ref, RpcProvisionRegistry service) { + new RpcProvisionRegistryProxy(ref as ServiceReference, service); + } + private static def dispatch createProxyImpl(ServiceReference reference, BrokerService service) { throw new IllegalArgumentException("Not supported class"); }