Add registerToOsgi flag to ServiceInterfaceAnnotation
[controller.git] / opendaylight / config / config-api / src / main / java / org / opendaylight / controller / config / api / annotations / ServiceInterfaceAnnotation.java
index e66de46520a11741e42c4cf72049ff6d18d2b0df..23a01a7b51654a233ee36c7efed043a67342eed9 100644 (file)
@@ -36,6 +36,11 @@ public @interface ServiceInterfaceAnnotation {
      */
     Class<?> osgiRegistrationType();
 
+    /**
+     * Determines whether or not the service instance should be registered with OSGi.
+     */
+    boolean registerToOsgi() default true;
+
     /**
      * Get namespace of {@link #value()}
      */