【仅供内部供应商使用,不提供对外解答和培训】

Page tree

【仅供内部供应商使用,不提供对外解答和培训】

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

插件包结构

插件包实际上是一个简单的zip压缩包,里面包含了插件的接入点描述信息(plugin.xml)以及对应的类文件(*.jar)。

plugin.xml

plugin-name1-version.jar

plugin-name2-version.jar

plugin.xml示例

<?xml version="1.0" encoding="UTF-8"?>
<plugin>
	<id>com.fr.test.abcd</id>
	<name><![CDATA[我是一个插件]]></name>
    <active>yes</active>
	<version>0.1</version>
	<env-version>8.0</env-version>
	<vendor email="author@finereport.com">author</vendor>
    <jartime>2015-09-09</jartime>
	<description><![CDATA[测试插件]]></description>
	<change-notes><![CDATA[有一些变化]]></change-notes>       
	<extra-core></extra-core>
	<extra-report></extra-report>
	<extra-designer>
		<TableDataCreatorProvider class="com.fr.plugin.PluginTableDataCreatorProvider"/>
    </extra-designer>
    <extra-chart-type></extra-chart-type>
    <extra-chart-design></extra-chart-design>
</plugin> 

plugin.xml中字段含义

字段含义
id插件的唯一标识符,不能和其他插件相同,否则会造成无法正确安装
name插件的名字
active插件是否启用
version插件版本
env-version插件针对的报表版本,一般来说,需要保持向后兼容
vendor插件开发者
jartime插件需要指定的日期之后的jar包
description插件的功能描述
change-notes当前版本插件的变化(更新日志)
extra-core核心接口实现
extra-report报表接口实现
extra-platform平台接口实现
extra-designer设计器接口实现
extra-chart-design图表设计器界面接口实现
extra-chart-type图表类型的接口实现
  • No labels