io.quarkus.micrometer.runtime.MeterRegistryCustomizerConstraint Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-micrometer Show documentation
Show all versions of quarkus-micrometer Show documentation
Instrument the runtime and your application with dimensional metrics using Micrometer.
package io.quarkus.micrometer.runtime;
import java.lang.annotation.ElementType;
import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import jakarta.enterprise.util.AnnotationLiteral;
import jakarta.inject.Qualifier;
@Qualifier
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.METHOD, ElementType.TYPE, ElementType.PARAMETER, ElementType.FIELD })
@Repeatable(MeterRegistryCustomizerConstraints.class)
public @interface MeterRegistryCustomizerConstraint {
Class> applyTo();
final class Literal extends AnnotationLiteral implements
MeterRegistryCustomizerConstraint {
private static final long serialVersionUID = 1L;
private final Class> clazz;
public Literal(Class> clazz) {
this.clazz = clazz;
}
@Override
public Class> applyTo() {
return clazz;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy