Refactor DOM{Action,Rpc}Implementation
[mdsal.git] / dom / mdsal-dom-api / src / main / java / org / opendaylight / mdsal / dom / api / DOMService.java
1 /*
2  * Copyright (c) 2014 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.dom.api;
9
10 import org.opendaylight.yangtools.concepts.ExtensibleObject;
11 import org.opendaylight.yangtools.concepts.ObjectExtension;
12
13 /**
14  * Marker interface for services which can be obtained from a {@link DOMMountPoint} instance. The only further semantics
15  * implied are that each service can also host related {@link Extension}s supported via the {@link ExtensibleObject}
16  * contract.
17  *
18  * @param <T> Concrete service type
19  * @param <E> Extension type
20  */
21 public interface DOMService<T extends DOMService<T, E>, E extends DOMService.Extension<T, E>>
22         extends ExtensibleObject<T, E> {
23     /**
24      * Extension to a concrete {@link DOMService}.
25      *
26      * @param <T> Concrete service type
27      * @param <E> Extension type
28      */
29     interface Extension<T extends DOMService<T, E>, E extends Extension<T, E>> extends ObjectExtension<T, E> {
30         // Only a marker interface
31     }
32 }