featureflags

FeatureFlags for Spring Boot

Лицензия

Лицензия

Группа

Группа

io.github.akayibrahim
Идентификатор

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

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

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

1.0.4
Дата

Дата

Тип

Тип

jar
Описание

Описание

featureflags
FeatureFlags for Spring Boot
Ссылка на сайт

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

http://maven.apache.org
Организация-разработчик

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

Pivotal Software, Inc.
Система контроля версий

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

https://github.com/akayibrahim/featureflags

Скачать featureflags

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

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

Зависимости

compile (3)

Идентификатор библиотеки Тип Версия
org.springframework.boot : spring-boot-starter-web jar 2.3.1.RELEASE
org.springframework.boot : spring-boot-starter-test jar 2.3.1.RELEASE
org.aspectj : aspectjweaver jar 1.9.5

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

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

Feature Flags Annotation for Spring (Java)

This project is for toggle off/on of java features.

Follow steps:

1 . Add below dependency to pom.xml of your project

<dependency>
   <groupId>io.github.akayibrahim</groupId>
   <artifactId>featureflags</artifactId>
   <version>1.0.4</version>
</dependency>

2 . Add below import annotation to your spring boot main class. @Import(FeatureFlags.class)

Example usage:

@SpringBootApplication
@Import(FeatureFlags.class)
public class DemoApplication {
    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
    }
}

3 . Now you are ready. You can add FeatureFlags annotation to your methods like below.

@FeatureFlag(enabled = "featureFlags.demo")
@Override
public void demo() {
	System.out.println("Demo Feature Flags");
}

4 . Don't forget add toggle parameter to your config file. (application.properties / application.yml)

featureFlags:
  demo: true

NOTES:

  • if your method has return object, don't forget null check when the method call.
  • Feature Flags can not use for Aspect.

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

Версия
1.0.4
1.0.3
1.0.1
1.0.0