BUG-614: split out RpcServiceMetadata 34/7734/4
authorRobert Varga <rovarga@cisco.com>
Thu, 5 Jun 2014 11:21:54 +0000 (13:21 +0200)
committerTony Tkacik <ttkacik@cisco.com>
Fri, 6 Jun 2014 11:02:20 +0000 (11:02 +0000)
RpcServiceMetadata is just another holder, no reason to define it in
xtend.

Change-Id: Ic069a9698e47a347e634289c7a96fac20c2a3d3f
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/sal/binding/codegen/impl/RpcServiceMetadata.java [new file with mode: 0644]
opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/sal/binding/codegen/impl/RuntimeCodeGenerator.xtend

diff --git a/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/sal/binding/codegen/impl/RpcServiceMetadata.java b/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/sal/binding/codegen/impl/RpcServiceMetadata.java
new file mode 100644 (file)
index 0000000..399afe7
--- /dev/null
@@ -0,0 +1,37 @@
+/**
+ * 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.sal.binding.codegen.impl;
+
+import java.util.HashMap;
+import java.util.HashSet;
+
+import org.opendaylight.yangtools.yang.binding.BaseIdentity;
+import org.opendaylight.yangtools.yang.binding.DataContainer;
+
+final class RpcServiceMetadata {
+    private final HashMap<Class<? extends DataContainer>, RpcMetadata> rpcInputs = new HashMap<>();
+    private final HashSet<Class<? extends DataContainer>> supportedInputs = new HashSet<>();
+    private final HashSet<Class<? extends BaseIdentity>> contexts = new HashSet<>();
+    private final HashMap<String, RpcMetadata> rpcMethods = new HashMap<>();
+
+    public HashSet<Class<? extends BaseIdentity>> getContexts() {
+        return this.contexts;
+    }
+
+    public HashMap<String, RpcMetadata> getRpcMethods() {
+        return this.rpcMethods;
+    }
+
+    public HashMap<Class<? extends DataContainer>, RpcMetadata> getRpcInputs() {
+        return this.rpcInputs;
+    }
+
+    public HashSet<Class<? extends DataContainer>> getSupportedInputs() {
+        return this.supportedInputs;
+    }
+}
index d47c0f9..4fb95d9 100644 (file)
@@ -7,8 +7,6 @@
  */
 package org.opendaylight.controller.sal.binding.codegen.impl
 
-import java.util.HashMap
-import java.util.HashSet
 import java.util.Map
 import java.util.WeakHashMap
 import javassist.ClassPool
@@ -270,22 +268,6 @@ package class RuntimeGeneratedInvoker implements NotificationInvoker {
     }
 }
 
-package class RpcServiceMetadata {
-
-    @Property
-    val contexts = new HashSet<Class<? extends BaseIdentity>>();
-
-    @Property
-    val rpcMethods = new HashMap<String, RpcMetadata>();
-
-    @Property
-    val rpcInputs = new HashMap<Class<? extends DataContainer>, RpcMetadata>();
-
-
-    @Property
-    val supportedInputs = new HashSet<Class<? extends DataContainer>>();
-}
-
 @Data
 package class RpcMetadata {
 

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.