Interface InjectionMessages

All Known Implementing Classes:
InjectionMessages_$bundle

@MessageBundle(projectCode="SRCFG", length=5) public interface InjectionMessages
  • Field Details

  • Method Details

    • noConfigValue

      @Message(id=2000, value="Failed to Inject @ConfigProperty for key %s into %s since the config property could not be found in any config source") ConfigException noConfigValue(@Param @Pos(1) String configPropertyName, @Pos(2) String location)
    • retrieveConfigFailure

      @Message(id=2001, value="Failed to Inject @ConfigProperty for key %s into %s %s") ConfigException retrieveConfigFailure(@Param @Pos(1) String configPropertyName, @Pos(2) String location, @Pos(3) String causeMessage, @Cause Exception e)
    • noConfigPropertyDefaultName

      @Message(id=2002, value="Could not find default name for @ConfigProperty InjectionPoint %s") IllegalStateException noConfigPropertyDefaultName(jakarta.enterprise.inject.spi.InjectionPoint injectionPoint)
    • unhandledConfigProperty

      @Message(id=2003, value="Unhandled ConfigProperty") IllegalStateException unhandledConfigProperty()
    • propertyNotFound

      @Message(id=2004, value="Required property %s not found") NoSuchElementException propertyNotFound(String name)
    • noRawType

      @Message(id=2005, value="Type has no raw type class: %s") IllegalArgumentException noRawType(Type type)
    • illegalConversion

      @Message(id=2006, value="The property %s cannot be converted to %s") IllegalArgumentException illegalConversion(String name, Type type)
    • noRegisteredConverter

      @Message(id=2007, value="No Converter registered for %s") IllegalArgumentException noRegisteredConverter(Class<?> type)
    • formatInjectionPoint

      static String formatInjectionPoint(jakarta.enterprise.inject.spi.InjectionPoint injectionPoint)
      Formats InjectPoint information for Exception messages.

      3 possible InjectionPoint types are considered:

      Fields
      Given: java.lang.String io.smallrye.config.inject.ValidateInjectionTest$SkipPropertiesTest$SkipPropertiesBean.missingProp
      Returns: io.smallrye.config.inject.ValidateInjectionTest$SkipPropertiesTest$SkipPropertiesBean.missingProp

      Method parameters
      Given: private void io.smallrye.config.inject.ValidateInjectionTest$MethodUnnamedPropertyTest$MethodUnnamedPropertyBean.methodUnnamedProperty(java.lang.String)
      Returns: io.smallrye.config.inject.ValidateInjectionTest$MethodUnnamedPropertyTest$MethodUnnamedPropertyBean.methodUnnamedProperty(String)

      Constructor parameters
      Given: public io.smallrye.config.inject.ValidateInjectionTest$ConstructorUnnamedPropertyTest$ConstructorUnnamedPropertyBean(java.lang.String)
      Returns: io.smallrye.config.inject.ValidateInjectionTest$ConstructorUnnamedPropertyTest$ConstructorUnnamedPropertyBean(String)
    • appendParameterTypes

      static void appendParameterTypes(StringBuilder sb, Executable executable)