Fix checkstyle reported by odlparent-3.0.0
[controller.git] / opendaylight / config / config-api / src / main / java / org / opendaylight / controller / config / api / jmx / constants / ConfigRegistryConstants.java
index bdb6f0e344e97472cb5d5e3e241783776d51066d..de4b582abfff25cb7eea38a5457142f8b0cd9c78 100644 (file)
@@ -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,
@@ -10,29 +10,34 @@ package org.opendaylight.controller.config.api.jmx.constants;
 import javax.management.MalformedObjectNameException;
 import javax.management.ObjectName;
 
-public class ConfigRegistryConstants {
+public final class ConfigRegistryConstants {
 
     private ConfigRegistryConstants() {
     }
 
     public static final String TYPE_CONFIG_REGISTRY = "ConfigRegistry";
 
+    public static final String TYPE_CONFIG_REGISTRY_NO_NOTIFICATIONS = "ConfigRegistryNoNotifications";
+
     public static final String ON_DOMAIN = "org.opendaylight.controller";
 
     public static final String TYPE_KEY = "type";
 
     public static final ObjectName OBJECT_NAME = createONWithDomainAndType(TYPE_CONFIG_REGISTRY);
 
+    public static final ObjectName OBJECT_NAME_NO_NOTIFICATIONS = createONWithDomainAndType(
+            TYPE_CONFIG_REGISTRY_NO_NOTIFICATIONS);
+
     public static final String GET_AVAILABLE_MODULE_NAMES_ATTRIBUT_NAME = "AvailableModuleNames";
 
-    public static ObjectName createONWithDomainAndType(String type) {
+    public static ObjectName createONWithDomainAndType(final String type) {
         return createON(ON_DOMAIN, TYPE_KEY, type);
     }
 
-    public static ObjectName createON(String name, String key, String value) {
+    public static ObjectName createON(final String name, final String key, final String value) {
         try {
             return new ObjectName(name, key, value);
-        } catch (MalformedObjectNameException e) {
+        } catch (final MalformedObjectNameException e) {
             throw new IllegalArgumentException(e);
         }