2d4459ffb5b04e16a3047836a776eb9235290c6f
[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 package org.opendaylight.mdsal.eos.common.spi;
9
10 import org.eclipse.jdt.annotation.NonNull;
11 import org.opendaylight.mdsal.eos.common.api.GenericEntity;
12 import org.opendaylight.mdsal.eos.common.api.GenericEntityOwnershipCandidateRegistration;
13 import org.opendaylight.yangtools.concepts.AbstractObjectRegistration;
14 import org.opendaylight.yangtools.concepts.HierarchicalIdentifier;
15
16 /**
17  * Abstract base class for an EntityOwnershipCandidateRegistration.
18  *
19  * @param <P> the instance identifier path type
20  * @param <E> the GenericEntity type
21  */
22 public abstract class AbstractGenericEntityOwnershipCandidateRegistration<P extends HierarchicalIdentifier<P>,
23         E extends GenericEntity<P>>
24         extends AbstractObjectRegistration<E> implements GenericEntityOwnershipCandidateRegistration<P, E> {
25
26     protected AbstractGenericEntityOwnershipCandidateRegistration(final @NonNull E entity) {
27         super(entity);
28     }
29 }