Annotation Type MessageParam


  • @Retention(RUNTIME)
    @Target(PARAMETER)
    public @interface MessageParam
    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 Also:
    Message
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String value  
    • Element Detail

      • value

        String value
        Returns:
        the name of the parameter declaration
        Default:
        "<<element name>>"