RFKSystems Vert.x Utils

Vert.x Utilities

Лицензия

Лицензия

Группа

Группа

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

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

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

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

1.0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

RFKSystems Vert.x Utils
Vert.x Utilities
Ссылка на сайт

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

https://github.com/rfksystems/vertx_utils
Организация-разработчик

Организация-разработчик

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

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

http://github.com/rfksystems/vertx_utils/tree/master

Скачать vertx_utils

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

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

Зависимости

compile (3)

Идентификатор библиотеки Тип Версия
io.vertx : vertx-core jar 3.4.2
io.vertx : vertx-config jar 3.4.2
org.jetbrains.kotlin : kotlin-stdlib-jre8 jar 1.1.4-3

test (1)

Идентификатор библиотеки Тип Версия
org.jetbrains.kotlin : kotlin-test jar 1.1.4-3

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

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

Vert.x utils

Common Vert.x utilities, written in Kotlin.

Maven Central

Installation

Maven

Add Maven dependency:

<dependency>
    <groupId>com.github.rfksystems</groupId>
    <artifactId>vertx_utils</artifactId>
    <version>${vertx_utils.version}</version>
</dependency>

Utility classes

ManagedVerticleFactory

io.vertx.core.spi.VerticleFactory implementation that sources all options, including class name, deployment options and configuration from io.vertx.core.json.JsonObject structure.

Designed to work with Vert.x Config component, it will also work with anything else provided that the data structure for JsonObject remains the same.

Usage

Define configuration (example in Yaml, but all providers should work given same structure):

com.example.someapp.services.web:
    main: com.example.someapp.services.WebServiceVerticle # Verticle class
    options: # Verticle Deployment options
        ha: true
        instances: 5
        worker: true
        config: # Verticle config, available via config() in verticle class
            foo: bar
            port: 8091

Load configuration and construct the ManagedVerticleFactory providing instance of io.vertx.core.json.JsonObject with above configuration.

Register it to Vert.x

final ManagedVerticleFactory = new ManagedVerticleFactory(servicesConfiguration);
vertx.registerVerticleFactory(managedVerticleFactory);

Deploy verticle:

vertx.deploy("local:com.example.someapp.services.web")

You can change the default local prefix to whatever you please using secondary constructor of ManagedVerticleFactory.

Other managers

See https://jitpack.io

License

Apache License, Version 2.0

com.rfksystems

RFK Systems

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

Версия
1.0.1
1.0.0