Feign Guice

Binds Feign resources into the Guice dependency injection framework.

Лицензия

Лицензия

MIT License
Категории

Категории

GUI Взаимодействие с пользователем Guice Библиотеки уровня приложения Dependency Injection Feign Сеть HTTP Clients
Группа

Группа

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

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

feign-guice
Последняя версия

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

1.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

Feign Guice
Binds Feign resources into the Guice dependency injection framework.
Ссылка на сайт

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

https://github.com/mlk/magical-provider-guice
Система контроля версий

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

http://github.com/mlk/feign-guice

Скачать feign-guice

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

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

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
com.github.mlk : magical-provider-guice jar 1.0.1
com.netflix.feign : feign-core jar 8.15.1

test (3)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.12
org.mockito : mockito-all jar 1.9.5
com.netflix.feign : feign-gson jar 8.15.1

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

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

Build Status codecov.io

feign-guice

A module to marry together Feign bound resources to the Guice dependency injection framework.

    public static void main(String... arg) {
        Injector injector = Guice.createInjector(FeignModule.builder()
                // Setting the builder here is optional, if not set it will ask Guice for one.
                .withBuilder(Feign.builder().decoder(new GsonDecoder()))
                // The base URL is required.
                .withUrl("https://api.github.com")
                // The packages to scan.
                .scan("com.github.mlk.guice.api").build());

        GitHub github = injector.getInstance(GitHub.class);
        List<Contributor> contributors = github.contributors("netflix", "feign");
        for (Contributor contributor : contributors) {
            System.out.println(contributor.login + " (" + contributor.contributions + ")");
        }

It is on Maven, so use it with:

<dependency>
  <groupId>com.github.mlk</groupId>
  <artifactId>feign-guice</artifactId>
  <version>1.0.0</version>
</dependency>

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

Версия
1.0.0