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

io.quarkus.qute.i18n.Message Maven / Gradle / Ivy

There is a newer version: 3.17.0.CR1
Show newest version
package io.quarkus.qute.i18n;

import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

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

/**
 * Identifies a message bundle method.
 * 

* Each method of a message bundle interface annotated with {@link MessageBundle} must be annotated with this annotation. * * @see MessageBundle */ @Retention(RUNTIME) @Target(METHOD) public @interface Message { /** * Constant value for {@link #key()} indicating that the default strategy specified by {@link MessageBundle#defaultKey()} * should be used. */ String DEFAULT_NAME = "<>"; /** * Constant value for {@link #key()} indicating that the annotated element's name should be used as-is. */ String ELEMENT_NAME = "<>"; /** * Constant value for {@link #key()} indicating that the annotated element's name should be de-camel-cased and * hyphenated, and then used. */ String HYPHENATED_ELEMENT_NAME = "<>"; /** * Constant value for{@link #key()} indicating that the annotated element's name should be de-camel-cased and parts * separated by underscores, and then used. */ String UNDERSCORED_ELEMENT_NAME = "<>"; /** * * @return the key */ String key() default DEFAULT_NAME; /** * * @return the message template */ String value(); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy