X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-binding-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fbinding%2Fapi%2FBindingAwareProvider.java;h=808863262dde665b4b5defcede286d36aff70c62;hp=35583c0d42f291faeae777081573027426d5d8b2;hb=a81d98f692b80c45bce3fe6a87e731abfb012a9f;hpb=d92bf9525c23d35df3befc1048e9293fefda6618 diff --git a/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/sal/binding/api/BindingAwareProvider.java b/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/sal/binding/api/BindingAwareProvider.java index 35583c0d42..808863262d 100644 --- a/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/sal/binding/api/BindingAwareProvider.java +++ b/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/sal/binding/api/BindingAwareProvider.java @@ -45,27 +45,28 @@ import org.opendaylight.controller.sal.binding.api.BindingAwareBroker.ProviderCo * * To get a NotificationService: * - * {code + * {@code * public void onSessionInitiated(ProviderContext session) { * NotificationProviderService notificationService = session.getSALService(NotificationProviderService.class); * } + * } * For more information on sending notifications via the NotificationProviderService * @see org.opendaylight.controller.sal.binding.api.NotificationProviderService * * To register an RPC implementation: * - * {code + * {@code * public void onSessionInitiated(ProviderContext session) { * RpcRegistration registration = session.addRpcImplementation(MyService.class, myImplementationInstance); * } + * } * *

- * * Where MyService.class is a Service interface generated from a yang model with RPCs modeled in it and myImplementationInstance * is an instance of a class that implements MyService. * * To register a Routed RPC Implementation: - * {code + * {@code * public void onSessionInitiated(ProviderContext session) { * RoutedRpcRegistration flowRegistration = session.addRoutedRpcImplementation(SalFlowService.class, salFlowServiceImplementationInstance); flowRegistration.registerPath(NodeContext.class, nodeInstanceId); @@ -76,7 +77,7 @@ import org.opendaylight.controller.sal.binding.api.BindingAwareBroker.ProviderCo * of a class that implements SalFlowService. *

* The line: - * {code + * {@code * flowRegistration.registerPath(NodeContext.class, nodeInstanceId); * } * Is indicating that the RPC implementation is registered to handle RPC invocations that have their NodeContext pointing to the node with instance id nodeInstanceId. @@ -92,14 +93,11 @@ import org.opendaylight.controller.sal.binding.api.BindingAwareBroker.ProviderCo * * To get a DataBroker to allow access to the data tree: * - * {code + * {@code * public void onSessionInitiated(final ProviderContext session) { * DataBroker databroker = session.getSALService(BindingDataBroker.class); * } * } - * @see org.opendaylight.controller.md.sal.common.api.data.BindingDataBroker - * for more info on using the DataBroker. - * */ public interface BindingAwareProvider {