This interface is intended to be a Registration, not an AutoCloseable,
and so is its only implementation.
Switch from AutoCloseable to ObjectRegistration, so users can take
advantage of the simplified API.
Change-Id: I47be557dce38f23e92d9744f019e327fa03c9321
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
* 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.mdsal.singleton.common.api;
+import org.opendaylight.yangtools.concepts.ObjectRegistration;
+
/**
- * {@link ClusterSingletonServiceRegistration} interface contains a marker for
- * holding ClusterSingletonService registration and posibility to close it
- * via {@link AutoCloseable} interface.
+ * An {@link ObjectRegistration} of a {@link ClusterSingletonService} instance.
*/
-public interface ClusterSingletonServiceRegistration extends AutoCloseable {
+public interface ClusterSingletonServiceRegistration extends ObjectRegistration<ClusterSingletonService> {
- /**
- * Empty body for mark a ClusterSingletonService Registration instance
- */
}