li.moskito:inkstand-deployment-resteasy

Simple Resteasy Deployment for Undertow.

Лицензия

Лицензия

Категории

Категории

RESTEasy Межпрограммное взаимодействие REST Frameworks
Группа

Группа

li.moskito
Идентификатор

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

inkstand-deployment-resteasy
Последняя версия

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

0.1.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

li.moskito:inkstand-deployment-resteasy
Simple Resteasy Deployment for Undertow.
Ссылка на сайт

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

https://github.com/moskitoli/inkstand/wiki/inkstand-deployment-resteasy

Скачать inkstand-deployment-resteasy

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

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

Зависимости

compile (12)

Идентификатор библиотеки Тип Версия
li.moskito : inkstand-core jar 0.1.0
li.moskito : inkstand-http-undertow jar 0.1.0
org.jboss.resteasy : resteasy-jaxrs jar 3.0.10.Final
org.jboss.resteasy : resteasy-cdi jar 3.0.10.Final
org.jboss.resteasy : async-http-servlet-3.0 jar 3.0.10.Final
org.jboss.resteasy : resteasy-client jar 3.0.10.Final
org.apache.deltaspike.core : deltaspike-core-api jar 1.1.0
org.apache.deltaspike.core : deltaspike-core-impl jar 1.1.0
org.slf4j : slf4j-api jar 1.7.6
org.apache.logging.log4j : log4j-slf4j-impl jar 2.0-rc1
org.apache.logging.log4j : log4j-api jar 2.0-rc1
org.apache.logging.log4j : log4j-core jar 2.0-rc1

provided (1)

Идентификатор библиотеки Тип Версия
org.jacoco : jacoco-maven-plugin jar 0.7.2.201409121644

test (3)

Идентификатор библиотеки Тип Версия
li.moskito : scribble jar 0.0.4
junit : junit jar 4.11
org.mockito : mockito-all jar 1.9.5

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

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

Build Status

Inkstand

Inkstand, a lightweight integration of RestEasy, Undertow, and Weld, based on Hammock by John Ament.

In comparison to the original hammock project, Inkstand provides the following features:

  • default configuration, overridable with properties or JVM parameters
  • separation of webserver and application configuration
  • automatic Resource and Provider discovery per default
  • exchangeable / injectable HTTP container
  • exchangeable Resteasy deployment (CDI extension)
  • injectable JCR support (Jackrabbit 2)
  • global alternative support (CDI extension)
  • NO support for management resources

Configuration

Beyond Hammock, Inkstand provides a default configuration for the HTTP server (localhost:80) which can easily be overriden - either by providing JVM parameters -Dinkstand.http.port= -Dinkstand.http.listenaddress= or by providing a properties file by implementing org.apache.deltaspike.core.api.config.PropertyFileConfig containing the very same parameters. Alternatively, the parameters can be set by implementing the WebServerConfiguration interface.

Resources and Providers

Per default, inkstand scans the classpath for Path resources an Providers which are automatically published as REST services. The default contextRoot can be overridden by defining the property inkstand.rest.contextRoot (see above) or by implementing and injecting an implementation of ApplicationConfiguration.

HTTP Container and Rest Implementation

Inkstand allows to replace the http container (default: undertow) by providing an Alternative an the Rest implementation (default: Resteasy without security).

JCR support

For application integration, Inkstand provides injectable access to a Jackrabbit based JCR repository (OAK is planned).

Global Alternatives

One of the more important feature is the CDI Extention GlobalAlternativeSelector. The selector allows to define an alternative class or stereotype in an application jar's beans.xml, which are injectable as alternative in other bean deployment archive as long as they are annotation with @Priority. The default CDI 1.1 spec only supports the @Priority annotation, but does not allow to select a global alternative in a beans.xml. The feature was required for JCR Repository providers to be injected in REST service JARs, that are defined in another jar than the actual application. Example:

  • jar1: inkstand-jcr-jackrabbit (@Produces Repository)
  • jar2: my-rest-services (@Inject Repository)
  • jar3: standalone (depends: inkstand, inkstand-jcr-jackrabbit, my-rest-services, defines global alternative in beans.xml)

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

Версия
0.1.0
0.0.2
0.0.1