Rename package in EosCommonApi
[mdsal.git] / entityownership / mdsal-eos-common-spi / src / main / java / org / opendaylight / mdsal / eos / common / spi / AbstractGenericEntityOwnershipCandidateRegistration.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.mdsal.eos.common.spi;
10
11 import com.google.common.base.Preconditions;
12 import javax.annotation.Nonnull;
13 import org.opendaylight.mdsal.eos.common.api.GenericEntity;
14 import org.opendaylight.mdsal.eos.common.api.GenericEntityOwnershipCandidateRegistration;
15 import org.opendaylight.yangtools.concepts.AbstractObjectRegistration;
16 import org.opendaylight.yangtools.concepts.Path;
17
18 /**
19  * Abstract base class for an EntityOwnershipCandidateRegistration.
20  *
21  * @param <P> the instance identifier path type
22  * @param <E> the GenericEntity type
23  */
24 public abstract class AbstractGenericEntityOwnershipCandidateRegistration<P extends Path<P>, E extends GenericEntity<P>>
25         extends AbstractObjectRegistration<E>
26         implements GenericEntityOwnershipCandidateRegistration<P, E> {
27
28     protected AbstractGenericEntityOwnershipCandidateRegistration(@Nonnull final E entity) {
29         super(Preconditions.checkNotNull(entity, "entity cannot be null"));
30     }
31 }
32