Package io.smallrye.config.inject
Interface InjectionMessages
- All Known Implementing Classes:
InjectionMessages_$bundle
@MessageBundle(projectCode="SRCFG",
length=5)
public interface InjectionMessages
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidappendParameterTypes(StringBuilder sb, Executable executable) static StringformatInjectionPoint(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)illegalConversion(String name, Type type) noConfigPropertyDefaultName(jakarta.enterprise.inject.spi.InjectionPoint injectionPoint) noConfigValue(String configPropertyName, String location) noRegisteredConverter(Class<?> type) propertyNotFound(String name) retrieveConfigFailure(String configPropertyName, String location, String causeMessage, Exception e)
-
Field Details
-
msg
-
-
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
-
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
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
-