All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.smallrye.faulttolerance.autoconfig.AutoConfig Maven / Gradle / Ivy

There is a newer version: 6.4.1
Show newest version
package io.smallrye.faulttolerance.autoconfig;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * If an interface that
 * 
    *
  • extends a fault tolerance annotation type,
  • *
  • extends the {@link Config} interface,
  • *
  • includes a {@code default} implementation of the {@link Config#validate()} method
  • *
* is annotated {@code @AutoConfig}, an implementation will be generated automatically. * The implementation will have a {@code public static} factory method called {@code create} * that accepts {@link FaultToleranceMethod}. */ @Retention(RetentionPolicy.SOURCE) @Target(ElementType.TYPE) public @interface AutoConfig { /** * Whether the annotation values can be overridden by MP Config. * Usually {@code true}, but there may be annotations for which that is not desirable. */ boolean configurable() default true; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy