Persist service references as separate MBeans.
[controller.git] / opendaylight / config / config-manager / src / main / java / org / opendaylight / controller / config / manager / impl / jmx / ServiceReferenceMXBeanImpl.java
diff --git a/opendaylight/config/config-manager/src/main/java/org/opendaylight/controller/config/manager/impl/jmx/ServiceReferenceMXBeanImpl.java b/opendaylight/config/config-manager/src/main/java/org/opendaylight/controller/config/manager/impl/jmx/ServiceReferenceMXBeanImpl.java
new file mode 100644 (file)
index 0000000..dedeeed
--- /dev/null
@@ -0,0 +1,27 @@
+/*
+ * Copyright (c) 2013 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.config.manager.impl.jmx;
+
+import javax.management.ObjectName;
+
+public class ServiceReferenceMXBeanImpl implements ServiceReferenceMXBean {
+    private ObjectName currentImplementation;
+
+    public ServiceReferenceMXBeanImpl(ObjectName currentImplementation) {
+        this.currentImplementation = currentImplementation;
+    }
+
+    @Override
+    public ObjectName getCurrentImplementation() {
+        return currentImplementation;
+    }
+
+    public void setCurrentImplementation(ObjectName currentImplementation) {
+        this.currentImplementation = currentImplementation;
+    }
+}