2 * Copyright (c) 2015 Brocade Communications Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.mdsal.eos.binding.dom.adapter;
10 import static java.util.Objects.requireNonNull;
12 import org.opendaylight.mdsal.eos.binding.api.Entity;
13 import org.opendaylight.mdsal.eos.binding.api.EntityOwnershipCandidateRegistration;
14 import org.opendaylight.mdsal.eos.dom.api.DOMEntityOwnershipCandidateRegistration;
15 import org.opendaylight.yangtools.concepts.AbstractObjectRegistration;
18 * Implementation of EntityOwnershipCandidateRegistration whose instances are returned from the
19 * {@link BindingDOMEntityOwnershipServiceAdapter}.
21 * @author Thomas Pantelis
23 class BindingEntityOwnershipCandidateRegistration extends AbstractObjectRegistration<Entity>
24 implements EntityOwnershipCandidateRegistration {
25 private final DOMEntityOwnershipCandidateRegistration domRegistration;
27 BindingEntityOwnershipCandidateRegistration(DOMEntityOwnershipCandidateRegistration domRegistration,
30 this.domRegistration = requireNonNull(domRegistration);
34 protected void removeRegistration() {
35 domRegistration.close();