Package io.smallrye.config.inject
Interface InjectionMessages
-
- All Known Implementing Classes:
InjectionMessages_$bundle
@MessageBundle(projectCode="SRCFG", length=5) public interface InjectionMessages
-
-
Field Summary
Fields Modifier and Type Field Description static InjectionMessagesmsg
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static voidappendParameterTypes(StringBuilder sb, Executable executable)static StringformatInjectionPoint(javax.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)IllegalArgumentExceptionillegalConversion(String name, Type type)IllegalStateExceptionnoConfigPropertyDefaultName(javax.enterprise.inject.spi.InjectionPoint injectionPoint)ConfigExceptionnoConfigValue(String configPropertyName, String location)IllegalArgumentExceptionnoRawType(Type type)IllegalArgumentExceptionnoRegisteredConverter(Class<?> type)NoSuchElementExceptionpropertyNotFound(String name)ConfigExceptionretrieveConfigFailure(String configPropertyName, String location, String causeMessage, Exception e)IllegalStateExceptionunhandledConfigProperty()
-
-
-
Field Detail
-
msg
static final InjectionMessages msg
-
-
Method Detail
-
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(javax.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(javax.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)
-
-