X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fconfig%2Fconfig-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconfig%2Fapi%2FServiceReferenceWritableRegistry.java;h=77fc8dc3c785f1b4c42b60ce83ecb879041d777b;hb=f43b01b81319959b1907e3e04537f5169e7f33d8;hp=fa2aa1f56e0d1fe5eef418038ccd3c39a80260a7;hpb=1ff9939abc7a4072b07df6b79516fe344b1b42e3;p=controller.git diff --git a/opendaylight/config/config-api/src/main/java/org/opendaylight/controller/config/api/ServiceReferenceWritableRegistry.java b/opendaylight/config/config-api/src/main/java/org/opendaylight/controller/config/api/ServiceReferenceWritableRegistry.java index fa2aa1f56e..77fc8dc3c7 100644 --- a/opendaylight/config/config-api/src/main/java/org/opendaylight/controller/config/api/ServiceReferenceWritableRegistry.java +++ b/opendaylight/config/config-api/src/main/java/org/opendaylight/controller/config/api/ServiceReferenceWritableRegistry.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. + * Copyright (c) 2013, 2017 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, @@ -12,17 +12,25 @@ import javax.management.ObjectName; public interface ServiceReferenceWritableRegistry extends ServiceReferenceReadableRegistry { /** - * Create or update reference name to objectName. Reference name is unique per service interface name. - * @return created or updated object name containing service name and reference name - * @throws IllegalArgumentException if there is a mismatch between serviceInterfaceName and objectName - * @throws InstanceNotFoundException if search did not find exactly one instance + * Create or update reference name to objectName. Reference name is unique per + * service interface name. + * + * @return created or updated object name containing service name and reference + * name + * @throws IllegalArgumentException + * if there is a mismatch between serviceInterfaceName and + * objectName + * @throws InstanceNotFoundException + * if search did not find exactly one instance */ - ObjectName saveServiceReference(String serviceInterfaceName, String refName, ObjectName moduleON) throws InstanceNotFoundException; + ObjectName saveServiceReference(String serviceInterfaceName, String refName, ObjectName moduleON) + throws InstanceNotFoundException; /** * Remove service reference. - * @return true iif removed - * @throws IllegalArgumentException if service interface name is not advertised by any module + * + * @throws IllegalArgumentException + * if service interface name is not advertised by any module */ void removeServiceReference(String serviceInterfaceName, String refName) throws InstanceNotFoundException; @@ -33,6 +41,7 @@ public interface ServiceReferenceWritableRegistry extends ServiceReferenceReadab /** * Remove all service references attached to given module. + * * @return true iif at least one reference was removed */ boolean removeServiceReferences(ObjectName objectName) throws InstanceNotFoundException;