Vert.x Module Manager

Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/

Группа

Группа

com.kafeblog.vertx
Идентификатор

Идентификатор

module-manager
Последняя версия

Последняя версия

0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

Vert.x Module Manager
Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/
Ссылка на сайт

Ссылка на сайт

http://kafeblog.com/blog/vertx-modules/module-manager
Система контроля версий

Система контроля версий

https://github.com/khoinguyen/vertx-module-manager

Скачать module-manager

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.kafeblog.vertx/module-manager/ -->
<dependency>
    <groupId>com.kafeblog.vertx</groupId>
    <artifactId>module-manager</artifactId>
    <version>0.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.kafeblog.vertx/module-manager/
implementation 'com.kafeblog.vertx:module-manager:0.1'
// https://jarcasting.com/artifacts/com.kafeblog.vertx/module-manager/
implementation ("com.kafeblog.vertx:module-manager:0.1")
'com.kafeblog.vertx:module-manager:jar:0.1'
<dependency org="com.kafeblog.vertx" name="module-manager" rev="0.1">
  <artifact name="module-manager" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.kafeblog.vertx', module='module-manager', version='0.1')
)
libraryDependencies += "com.kafeblog.vertx" % "module-manager" % "0.1"
[com.kafeblog.vertx/module-manager "0.1"]

Зависимости

provided (2)

Идентификатор библиотеки Тип Версия
io.vertx : vertx-core jar 2.0.0-final
io.vertx : vertx-platform jar 2.0.0-final

test (2)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.11
io.vertx : testtools jar 2.0.0-final

Модули Проекта

Данный проект не имеет модулей.

Vert.x Module Manager Project

This module to put in place the conventions to auto-deploy the modules

How it works

Follow the below convention for the configuration file

{
  "manager": {
     "notify_address": "<address for notification once any event on modules>"
  },
  "module:io.vertx~mod-mongo-persistor~2.1.0-SNAPSHOT" : {
     "address": "mongo.persistor",
     "db_name": "mymongodb",
     "host": "localhost",
     "port": 27017,
     "fake": false
  },
  "module:io.vertx~mod-work-queue~2.0.0-final": {
     "address": "workqueue",
     "process_timeout": 10,
     "persistor_address": "mongo.persistor",
     "collection": "work_items"  
  },
  "module:io.vertx~mod-auth-mgr~2.0.0-final": {
     "address": "com.auth",
     "user_collection": "user_access",
     "persistor_address": "mongo.persistor",
     "session_timeout": 10   
  }
}

The above configuration shall deploy mod-mongo-persistor, mod-work-queue and mod-auth-mgr, once deploy it will notify to the address configured.

For the main verticle, just deploy this module with container.config.

Sample script for Javascript application

I have a structure for simple application with single main verticle, you can just edit the config.json file to assemble new application easily.

You can found it at src/main/resource/sample

Версии библиотеки

Версия
0.1