florianschmitt/connection-backend

View on GitHub
src/main/kotlin/de/florianschmitt/system/util/profileannotations.kt

Summary

Maintainability
B
5 hrs
Test Coverage
package de.florianschmitt.system.util

import org.springframework.context.annotation.Profile

@Retention(AnnotationRetention.RUNTIME)
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
@Profile("dev-postgres")
annotation class DevPostgresProfile

@Retention(AnnotationRetention.RUNTIME)
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
@Profile("dev")
annotation class DevProfile

@Retention(AnnotationRetention.RUNTIME)
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
@Profile("prod")
annotation class ProductiveProfile

@Retention(AnnotationRetention.RUNTIME)
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
@Profile("testing")
annotation class TestingProfile

@Retention(AnnotationRetention.RUNTIME)
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
@Profile("test")
annotation class TestProfile

@Retention(AnnotationRetention.RUNTIME)
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
@Profile("!test")
annotation class NotTestProfile