Java Plugin Framework (JPF) java插件框架学习

来源:互联网 发布:知乎年度吐槽精选5 编辑:程序博客网 时间:2024/05/08 18:25

每个插件模块有一个配置文件一般名称为plugin.xml。

项目中其中的一个典型的配置文件内容为:其中的requires元素表示插件之间的依赖关系

<?xml version="1.0" ?><!DOCTYPE plugin PUBLIC "-//JPF//Java Plug-in Manifest 1.0" "http://jpf.sourceforge.net/plugin_1_0.dtd"><plugin id="c_in_pos" version="1"    class="com.*.test">    <requires>        <import plugin-id="dataSource_card"/>    </requires>    <runtime>        <library id="core" path="classes/" type="code"/>        <library id="log" path="lib/exchangeLog.jar" type="code"/>        <library id="conf" path="conf/" type="resources"/>        <library id="spring" path="lib/spring.jar" type="code"/>        <library id="hessian.jar" path="lib/hessian.jar" type="code"/>        <library id="css.jar" path="lib/css.jar" type="code"/>        <library id="ibatis" path="lib/ibatis-2.3.0.677.jar" type="code"/>        <library id="cglib-nodep-2.1_3.jar" path="lib/cglib-nodep-2.1_3.jar" type="code"/>        <library id="asm-2.2.3.jar" path="lib/asm-2.2.3.jar" type="code"/>        <library id="asm-commons-2.2.3.jar" path="lib/asm-commons-2.2.3.jar" type="code"/>        <library id="backport-util-concurrent.jar" path="lib/backport-util-concurrent.jar" type="code"/>    </runtime></plugin>


 


原创粉丝点击