X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-common-impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Fcommon%2Fimpl%2Fclustering%2FAbstractEntityOwnershipListenerRegistration.java;fp=opendaylight%2Fmd-sal%2Fsal-common-impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Fcommon%2Fimpl%2Fclustering%2FAbstractEntityOwnershipListenerRegistration.java;h=0000000000000000000000000000000000000000;hb=0c877a510c8da62881b73ceff8b1ecdeaf3f8cd2;hp=77118a0f436057848d98d883a3098d864ba5ed91;hpb=5e60027f1ed6b966608d8020df47c6ec8fe16716;p=controller.git diff --git a/opendaylight/md-sal/sal-common-impl/src/main/java/org/opendaylight/controller/md/sal/common/impl/clustering/AbstractEntityOwnershipListenerRegistration.java b/opendaylight/md-sal/sal-common-impl/src/main/java/org/opendaylight/controller/md/sal/common/impl/clustering/AbstractEntityOwnershipListenerRegistration.java deleted file mode 100644 index 77118a0f43..0000000000 --- a/opendaylight/md-sal/sal-common-impl/src/main/java/org/opendaylight/controller/md/sal/common/impl/clustering/AbstractEntityOwnershipListenerRegistration.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (c) 2015 Brocade Communications Systems, Inc. and others. All rights reserved. - * - * This program and the accompanying materials are made available under the - * 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.controller.md.sal.common.impl.clustering; - -import com.google.common.base.Preconditions; -import javax.annotation.Nonnull; -import org.opendaylight.controller.md.sal.common.api.clustering.EntityOwnershipListener; -import org.opendaylight.controller.md.sal.common.api.clustering.EntityOwnershipListenerRegistration; -import org.opendaylight.yangtools.concepts.AbstractObjectRegistration; - -/** - * Abstract base class for an EntityOwnershipListenerRegistration. - * - * @author Thomas Pantelis - */ -public abstract class AbstractEntityOwnershipListenerRegistration extends AbstractObjectRegistration - implements EntityOwnershipListenerRegistration { - private final String entityType; - - protected AbstractEntityOwnershipListenerRegistration(@Nonnull EntityOwnershipListener listener, - @Nonnull String entityType) { - super(listener); - this.entityType = Preconditions.checkNotNull(entityType, "entityType cannot be null"); - } - - @Override - public String getEntityType() { - return entityType; - } -}