Merge "BUG 718: changed codec for URI parsing"
[controller.git] / opendaylight / config / yang-jmx-generator-plugin / src / main / java / org / opendaylight / controller / config / yangjmxgenerator / plugin / ftl / StubFactoryTemplate.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.controller.config.yangjmxgenerator.plugin.ftl;
9
10 import java.util.Collections;
11
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;
16
17 import com.google.common.collect.Lists;
18
19 public class StubFactoryTemplate extends GeneralClassTemplate {
20
21     private final String moduleInstanceType;
22
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;
30     }
31
32     public String getModuleInstanceType() {
33         return moduleInstanceType;
34     }
35
36     public String getDynamicMBeanWithInstanceType() {
37         return DynamicMBeanWithInstance.class.getCanonicalName();
38     }
39 }