---
title: "Jwebap项目(六)——plugin部署的设计讨论"
author: "leadyu"
date: "2008-04-05T17:50:29Z"
tags: []
slug: "jwebap-plugin"
draft: false
lastmod: "2008-04-05T17:50:29Z"
id: 179701
url: "https://leadyu.iteye.com/blog/179701"
---

Jwebap(jwebap介绍：<http://www.iteye.com/topic/165593>,<jwebap.sourceforge.net>)准备在0.6.*版本，实现初步的plugin管理，在plugin架构的基础上扩展jwebap的功能,这里专门讨论下关于部署管理的设计，欢迎大家提意见

Jwebap的Plugin部署设计包括：


**可视化部署——Jwebap控制台**

1)支持对plugin的界面部署,可以移除plugin和部署新的plugin

2)Component的参数可在界面配置，可以配置Component开关

**部署方式**

1)Jwebap分为core包和各种plugin包,在jwebap.xml里面可以配置{ *plugin-ref , *component , *action , *deispatcher}

2)plugin包的Meta-INF目录存放plugin.xml,配置{*component , *action , *deispatcher}
默认jwebap.xml里面只配置plugin-ref，以及core包需要的action和deispatcher，当在控制台修改了plugin的参数(比如JdbcComponent的driver-class参数)，则会保存在jwebap.xml中

3)jwebap.xml配置的同名component,action,deispatcher优先于各plugin的配置

4)在jwebap控制修改了部署参数，暂时不支持刷新到RuntimeContext,必须重起Server方能生效，或者在第一次部署时手工修改配置文件