X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=dom%2Fmdsal-dom-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fmdsal%2Fdom%2Fapi%2FDOMActionProviderService.java;h=254d0a8534c137faae91508601da663492029e17;hb=5f8a373c07549a901b70595067dd11c161d0c4e4;hp=11ac9ed1566dae3155bebe6439c3c395d16eebc4;hpb=aa629fb8d217a4d42a92aa8e78d7ae679f797346;p=mdsal.git diff --git a/dom/mdsal-dom-api/src/main/java/org/opendaylight/mdsal/dom/api/DOMActionProviderService.java b/dom/mdsal-dom-api/src/main/java/org/opendaylight/mdsal/dom/api/DOMActionProviderService.java index 11ac9ed156..254d0a8534 100644 --- a/dom/mdsal-dom-api/src/main/java/org/opendaylight/mdsal/dom/api/DOMActionProviderService.java +++ b/dom/mdsal-dom-api/src/main/java/org/opendaylight/mdsal/dom/api/DOMActionProviderService.java @@ -7,17 +7,15 @@ */ package org.opendaylight.mdsal.dom.api; -import com.google.common.annotations.Beta; import com.google.common.collect.ImmutableSet; import java.util.Set; import org.eclipse.jdt.annotation.NonNullByDefault; -import org.opendaylight.yangtools.concepts.ObjectRegistration; +import org.opendaylight.yangtools.concepts.Registration; /** * A {@link DOMService} which allows registration of action implementations with a conceptual router. The client * counterpart of this service is {@link DOMActionService}. */ -@Beta @NonNullByDefault public interface DOMActionProviderService extends DOMService { @@ -33,24 +31,23 @@ public interface DOMActionProviderService * * @param implementation action implementation, must not be null * @param instances Set of supported operation identifiers. Must not be null, empty, or contain a null element. - * @return A {@link ObjectRegistration} object, guaranteed to be non-null. + * @return A {@link Registration} object, guaranteed to be non-null. * @throws NullPointerException if {@code implementation} or {@code instances} is null, or if {@code instances} * contains a null element. * @throws IllegalArgumentException if {@code instances} is empty */ - ObjectRegistration registerActionImplementation(T implementation, - Set instances); + Registration registerActionImplementation(DOMActionImplementation implementation, Set instances); /** * Register an {@link DOMActionImplementation} object with this service, servicing specified action instance. * * @param implementation action implementation, must not be null * @param instance supported operation identifier. Must not be null. - * @return A {@link ObjectRegistration} object, guaranteed to be non-null. + * @return A {@link Registration} object, guaranteed to be non-null. * @throws NullPointerException if any argument is null */ - default ObjectRegistration registerActionImplementation( - final T implementation, final DOMActionInstance instance) { + default Registration registerActionImplementation(final DOMActionImplementation implementation, + final DOMActionInstance instance) { return registerActionImplementation(implementation, ImmutableSet.of(instance)); } @@ -59,13 +56,13 @@ public interface DOMActionProviderService * * @param implementation action implementation, must not be null * @param instances Set of supported operation identifiers. Must not be null, empty, or contain a null element. - * @return A {@link ObjectRegistration} object, guaranteed to be non-null. + * @return A {@link Registration} object, guaranteed to be non-null. * @throws NullPointerException if {@code implementation} or {@code instances} is null, or if {@code instances} * contains a null element. * @throws IllegalArgumentException if {@code instances} is empty */ - default ObjectRegistration registerActionImplementation( - final T implementation, final DOMActionInstance... instances) { + default Registration registerActionImplementation(final DOMActionImplementation implementation, + final DOMActionInstance... instances) { return registerActionImplementation(implementation, ImmutableSet.copyOf(instances)); } }