1 package com.atlassian.plugins.codegen.modules.common.web;
2
3 import com.atlassian.plugins.codegen.annotations.*;
4 import com.atlassian.plugins.codegen.modules.AbstractPluginModuleCreator;
5 import com.atlassian.plugins.codegen.modules.PluginModuleLocation;
6
7
8
9
10 @RefAppPluginModuleCreator
11 @JiraPluginModuleCreator
12 @ConfluencePluginModuleCreator
13 @BambooPluginModuleCreator
14 @CrowdPluginModuleCreator
15 @Dependencies({
16 @Dependency(groupId = "org.mockito", artifactId = "mockito-all", version = "1.8.5", scope = "test")
17 })
18 public class WebSectionModuleCreator extends AbstractPluginModuleCreator<WebSectionProperties>
19 {
20
21 public static final String MODULE_NAME = "Web Section";
22 private static final String TEMPLATE_PREFIX = "templates/common/web/websection/";
23
24 private static final String PLUGIN_MODULE_TEMPLATE = TEMPLATE_PREFIX + "web-section-plugin.xml.vtl";
25
26 @Override
27 public void createModule(PluginModuleLocation location, WebSectionProperties props) throws Exception
28 {
29
30 addModuleToPluginXml(PLUGIN_MODULE_TEMPLATE, location, props);
31 }
32
33
34 @Override
35 public String getModuleName()
36 {
37 return MODULE_NAME;
38 }
39 }