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

io.quarkus.qute.i18n.MessageParam 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.PARAMETER;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

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

/**
 * This annotation can be used to bind a message bundle method parameter with a template parameter declaration.
 * 

* By default, the parameter element's name is used as-is. * *

 * 
 * @MessageBundle
 * interface MyBundle {
 * 
 *     @Message("Hello {name}!")
 *     String hello_world(@MessageParam("name") String foo);
 * }
 * 
 * 
* * @see Message */ @Retention(RUNTIME) @Target(PARAMETER) public @interface MessageParam { /** * * @return the name of the parameter declaration */ String value() default Message.ELEMENT_NAME; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy