3 package org.opendaylight.controller.config.yang.test.impl;
5 import com.google.common.collect.Lists;
9 public class NetconfTestImplModuleUtil {
10 static NetconfTestImplRuntimeRegistration registerRuntimeBeans(final NetconfTestImplModule module) {
11 NetconfTestImplRuntimeRegistration reg = module.getRootRuntimeBeanRegistratorWrapper().register(new NetconfTestImplRuntimeMXBean() {
14 public Long getCreatedSessions() {
15 return module.getSimpleLong();
19 public Asdf getAsdf() {
20 final Asdf asdf = new Asdf();
21 asdf.setSimpleString("asdf");
26 public String noArg(final String arg1) {
27 return arg1.toUpperCase();
32 for (int i = 0; i < module.getSimpleShort(); i++) {
35 reg.register(new InnerRunningDataAdditionalRuntimeMXBean() {
37 public Integer getSimpleInt3() {
38 return module.getSimpleTest();
42 public Deep4 getDeep4() {
43 final Deep4 d = new Deep4();
49 public String getSimpleString() {
50 return Integer.toString(finalI);
54 public void noArgInner() {
58 InnerRunningDataRuntimeRegistration innerReg = reg.register(new InnerRunningDataRuntimeMXBean() {
60 public Integer getSimpleInt3() {
65 public Deep2 getDeep2() {
70 for (int j = 0; j < module.getSimpleShort(); j++) {
72 innerReg.register(new InnerInnerRunningDataRuntimeMXBean() {
74 public List<NotStateBean> getNotStateBean() {
75 NotStateBean b1 = new NotStateBean();
76 b1.setElement("not state");
77 return Lists.newArrayList(b1);
81 public Integer getSimpleInt3() {
86 public Deep3 getDeep3() {
91 public List<String> getListOfStrings() {
92 return Lists.newArrayList("l1", "l2");
96 public List<RetValList> listOutput() {
97 return Lists.newArrayList(new RetValList());
101 public Boolean noArgInnerInner(Integer integer, Boolean aBoolean) {
106 public RetValContainer containerOutput() {
107 return new RetValContainer();
111 public List<String> leafListOutput() {
112 return Lists.newArrayList("1", "2");