2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.controller.config.yangjmxgenerator.plugin.ftl;
10 import java.util.Collections;
12 import org.opendaylight.controller.config.api.DynamicMBeanWithInstance;
13 import org.opendaylight.controller.config.yangjmxgenerator.plugin.ftl.model.Field;
14 import org.opendaylight.controller.config.yangjmxgenerator.plugin.ftl.model.Header;
15 import org.opendaylight.controller.config.yangjmxgenerator.plugin.ftl.model.MethodDefinition;
17 import com.google.common.collect.Lists;
19 public class StubFactoryTemplate extends GeneralClassTemplate {
21 private final String moduleInstanceType;
23 public StubFactoryTemplate(Header header, String packageName, String name,
24 String extendedClass, String moduleInstanceType) {
25 super(header, packageName, name, Lists.newArrayList(extendedClass),
26 Collections.<String> emptyList(), Collections
27 .<Field> emptyList(), Collections
28 .<MethodDefinition> emptyList());
29 this.moduleInstanceType = moduleInstanceType;
32 public String getModuleInstanceType() {
33 return moduleInstanceType;
36 public String getDynamicMBeanWithInstanceType() {
37 return DynamicMBeanWithInstance.class.getCanonicalName();