atlassian JIRA 插件开发(八) — MVC实现

其实自己对MVC模式也甚不了解,只是自己看过些,也悟了悟,结合在JIRA的插件开发上。
JIRA开发个人认为,Atlassian已经将其框架搭建有方,自认为如果了解JIRA开发的API和REST,适当结合MVC模式,懂得前后端数据交互方式,自当有所成就,顺心之后,必然都是小问题。
由以上可以看出JIRA开发需要两点:

  • JIRA的API和REST掌握;
  • MVC有所悟;

这些都是个人感觉。
JIRA插件前端采用VM模板、后端采用JAVA驱动、

这些均在atlassian-plugin.xml文件中配置,前后端的数据交互通道在此定义。

<atlassian-plugin key="${project.groupId}.${project.artifactId}" name="${project.name}" plugins-version="2">
    <plugin-info>
        <description>${project.description}description>
        <version>${project.version}version>
        <vendor name="${project.organization.name}" url="${project.organization.url}" />
        <param name="plugin-icon">images/pluginIcon.pngparam>
        <param name="plugin-logo">images/pluginLogo.pngparam>
    plugin-info>
    <resource type="i18n" name="i18n" location="tutorial-jira-simple-issue-crud"/>
    <web-resource key="tutorial-jira-simple-issue-crud-resources" name="tutorial-jira-simple-issue-crud Web Resources">
        <dependency>com.atlassian.auiplugin:ajsdependency>
        <resource type="download" name="tutorial-jira-simple-issue-crud.css" location="/css/tutorial-jira-simple-issue-crud.css"/>
        <resource type="download" name="tutorial-jira-simple-issue-crud.js" location="/js/tutorial-jira-simple-issue-crud.js"/>
        <resource type="download" name="images/" location="/images"/>
        <context>tutorial-jira-simple-issue-crudcontext>
    web-resource>
    <component key="myPluginComponent" class="com.example.plugins.tutorial.MyPluginComponentImpl" public="true">
        <interface>com.example.plugins.tutorial.MyPluginComponentinterface>
    component>
    <component-import key="applicationProperties" interface="com.atlassian.sal.api.ApplicationProperties" />
atlassian-plugin>

class定义C,VM定义V,

待续。。。

你可能感兴趣的:(JIRA,插件开发)