Vert.x module概念

Vert.x module概念

官网: http://vertx.io/vertx2/mods_manual.html#what-is-a-vertx-module

Module Identifier

一个Module有一个唯一标识:三部分组成的字符串

Owner~Name~Version

mod.json

Module descriptor file,每个Module必须有这个文件,在Module的根目录下

描述项:

main : runnable module 必备,指定module入口verticle类名

lang-impl : 多语言,复写langs.properties中配置

worker : 指定为Worker module,允许阻塞操作

includes : 嵌套其他modules

auto-redeploy : 若检测到资源变化则自动重部署,默认为false

system : 在安装modules至sys-mods目录,默认为false

description

licenses

author

keywords

developers

Module lib directory

如果module是直接使用jar,需要放在module根目录的lib/下

Module目录结构示例:

/mod.json
/com/mycompany/myothermod/App.class
/com/mycompany/myothermod/SomeOtherClass.class
/lib/somelib.jar
/lib/someotherlib.jar

Module classpath

module的classpath:根目录与lib/下

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值