X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-binding-broker%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fbinding%2Fimpl%2FOsgiProviderContext.xtend;h=d1ec35157f5770080b75fbe794637c220c0a2d43;hb=4a1ea7b3cd735982883a984338355a368f8f888a;hp=29c3845004ee2390f33f1b02f2d167ad7c173dea;hpb=a251833f27fd00040904e2df316cd707c8129d1e;p=controller.git diff --git a/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/sal/binding/impl/OsgiProviderContext.xtend b/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/sal/binding/impl/OsgiProviderContext.xtend index 29c3845004..d1ec35157f 100644 --- a/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/sal/binding/impl/OsgiProviderContext.xtend +++ b/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/sal/binding/impl/OsgiProviderContext.xtend @@ -20,6 +20,7 @@ import static extension org.opendaylight.controller.sal.binding.impl.osgi.Proper import org.opendaylight.controller.sal.binding.api.BindingAwareBroker.RpcRegistration import org.opendaylight.yangtools.yang.binding.InstanceIdentifier import org.opendaylight.controller.sal.binding.api.BindingAwareProvider.ProviderFunctionality +import static com.google.common.base.Preconditions.* class OsgiProviderContext extends OsgiConsumerContext implements ProviderContext { @@ -32,42 +33,22 @@ class OsgiProviderContext extends OsgiConsumerContext implements ProviderContext } override addRpcImplementation(Class type, T implementation) { - - // TODO Auto-generated method stub - val properties = new Hashtable(); - properties.salServiceType = SAL_SERVICE_TYPE_PROVIDER - - // Fill requirements - val salReg = broker.registerRpcImplementation(type, implementation, this, properties) - registeredServices.put(type, salReg) - return salReg; - } - - override addMountRpcImplementation(Class type, InstanceIdentifier mount, T implementation) throws IllegalStateException { - - val properties = new Hashtable(); - properties.salServiceType = SAL_SERVICE_TYPE_PROVIDER - - // Fill requirements - val salReg = broker.registerMountedRpcImplementation(type, implementation, mount, this, properties) + val salReg = broker.addRpcImplementation(type, implementation) registeredServices.put(type, salReg) return salReg; } override addRoutedRpcImplementation(Class type, T implementation) throws IllegalStateException { - val properties = new Hashtable(); - properties.salServiceType = SAL_SERVICE_TYPE_PROVIDER - - // Fill requirements - val salReg = broker.registerRoutedRpcImplementation(type, implementation, this, properties) + val salReg = broker.addRoutedRpcImplementation(type, implementation) registeredServices.put(type, salReg) return salReg; } override registerFunctionality(ProviderFunctionality functionality) { - + // NOOP for now } override unregisterFunctionality(ProviderFunctionality functionality) { + // NOOP for now } }