Reuse PEM provider in netconf-testtool.
[controller.git] / opendaylight / config / yang-jmx-generator-plugin / src / main / java / org / opendaylight / controller / config / yangjmxgenerator / plugin / ftl / AbstractFactoryTemplate.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 com.google.common.collect.Lists;
11 import org.opendaylight.controller.config.spi.ModuleFactory;
12 import org.opendaylight.controller.config.yangjmxgenerator.plugin.ftl.model.Constructor;
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 java.util.Collections;
18 import java.util.List;
19
20 public class AbstractFactoryTemplate extends GeneralClassTemplate {
21
22     private static final List<String> IMPLEMENTED_IFCS = Lists
23             .newArrayList(ModuleFactory.class.getCanonicalName());
24
25     public AbstractFactoryTemplate(Header header, String packageName,
26                                    String abstractFactoryName,
27                                    List<Field> fields) {
28         super(header, packageName, abstractFactoryName, Collections
29                 .<String> emptyList(), IMPLEMENTED_IFCS, fields, Collections
30                 .<MethodDefinition> emptyList(), true, false, Collections
31                 .<Constructor> emptyList());
32     }
33 }