2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.controller.config.api.annotations;
10 import java.lang.annotation.ElementType;
11 import java.lang.annotation.Retention;
12 import java.lang.annotation.RetentionPolicy;
13 import java.lang.annotation.Target;
16 * Marks an interface implemented by
17 * {@link org.opendaylight.controller.config.spi.Module} as a Service Interface.
18 * Each service interface is identified by globally unique and human readable
19 * name. By convention the name is all lower case without spaces.
21 @Retention(RetentionPolicy.RUNTIME)
22 @Target(ElementType.TYPE)
23 public @interface ServiceInterfaceAnnotation {
26 * Specifies human readable name of this service. Each service name should
27 * be globally unique. Should not contain spaces.
32 * Mandatory class which will be used as key for OSGi service registration
33 * once {@link org.opendaylight.controller.config.spi.Module#getInstance()}
36 Class<?> osgiRegistrationType();