Class MessageBundleMethodBuildItem


  • public final class MessageBundleMethodBuildItem
    extends io.quarkus.builder.item.MultiBuildItem
    Represents a message bundle method.

    Note that templates that contain no expressions don't need to be validated.

    • Constructor Detail

      • MessageBundleMethodBuildItem

        MessageBundleMethodBuildItem​(String bundleName,
                                     String key,
                                     String templateId,
                                     org.jboss.jandex.MethodInfo method,
                                     String template,
                                     boolean isDefaultBundle)
    • Method Detail

      • getBundleName

        public String getBundleName()
      • getKey

        public String getKey()
      • getTemplateId

        public String getTemplateId()
      • getMethod

        public org.jboss.jandex.MethodInfo getMethod()
      • getTemplate

        public String getTemplate()
      • isValidatable

        public boolean isValidatable()
        A bundle method that does not need to be validated has null template id.
        Returns:
        true if the template needs to be validated
      • isDefaultBundle

        public boolean isDefaultBundle()
        Returns:
        true if the message comes from the default bundle