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

io.quarkus.micrometer.runtime.MeterRegistryCustomizerConstraint Maven / Gradle / Ivy

Go to download

Instrument the runtime and your application with dimensional metrics using Micrometer.

There is a newer version: 3.17.5
Show newest version
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