X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-dom-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Fdom%2Fapi%2FDOMExtensibleService.java;fp=opendaylight%2Fmd-sal%2Fsal-dom-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Fdom%2Fapi%2FDOMExtensibleService.java;h=22334420ada83d1804f57617cd0bf5d726f30356;hb=c02fd92c1eade50c01333b3f5c6e9f7e2faaafce;hp=0000000000000000000000000000000000000000;hpb=f84f3b8fb24b1ee2074fbbb3f5c64e3ba3191e3e;p=controller.git diff --git a/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/md/sal/dom/api/DOMExtensibleService.java b/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/md/sal/dom/api/DOMExtensibleService.java new file mode 100644 index 0000000000..22334420ad --- /dev/null +++ b/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/md/sal/dom/api/DOMExtensibleService.java @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2015 Cisco 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.dom.api; + +import com.google.common.annotations.Beta; +import java.util.Map; +import javax.annotation.Nonnull; + +/** + * Marker interface for services which can support {@link DOMServiceExtension}. + * Aside for marking these, they also provide runtime query to detect whether + * a particular trait is in fact available. + * + * Base {@link DOMService} + * Extension type + */ +@Beta +public interface DOMExtensibleService, E extends DOMServiceExtension> extends DOMService { + /** + * Return a map of currently-supported extensions, along with accessor services + * which provide access to the specific functionality bound to this service. + * + * @return A map of supported functionality. + */ + @Nonnull Map, E> getSupportedExtensions(); +}