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

io.quarkus.runtime.annotations.ConvertWith Maven / Gradle / Ivy

There is a newer version: 3.17.5
Show newest version
package io.quarkus.runtime.annotations;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import org.eclipse.microprofile.config.spi.Converter;

/**
 * Defines a {@link Converter} to be used for conversion of a config property.
 * This will override the default converter on the target config item.
 */
@Retention(RUNTIME)
@Target({ FIELD, PARAMETER })
@Documented
public @interface ConvertWith {
    /**
     * Specify the relative name of the configuration item.
     *
     * @return the name
     */
    Class> value();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy