@MessageBundle(projectCode="SRCFG",
length=5)
public interface InjectionMessages
| Modifier and Type | Field and Description |
|---|---|
static InjectionMessages |
msg |
| Modifier and Type | Method and Description |
|---|---|
static void |
appendParameterTypes(StringBuilder sb,
Executable executable) |
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) |
IllegalArgumentException |
illegalConversion(String name,
Type type) |
IllegalStateException |
noConfigPropertyDefaultName(javax.enterprise.inject.spi.InjectionPoint injectionPoint) |
ConfigException |
noConfigValue(String configPropertyName,
String location) |
IllegalArgumentException |
noRawType(Type type) |
IllegalArgumentException |
noRegisteredConverter(Class<?> type) |
NoSuchElementException |
propertyNotFound(String name) |
ConfigException |
retrieveConfigFailure(String configPropertyName,
String location,
String causeMessage,
Exception e) |
IllegalStateException |
unhandledConfigProperty() |
static final InjectionMessages msg
@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(value=1)
String configPropertyName,
@Pos(value=2)
String location)
@Message(id=2001,
value="Failed to Inject @ConfigProperty for key %s into %s %s")
ConfigException retrieveConfigFailure(@Param @Pos(value=1)
String configPropertyName,
@Pos(value=2)
String location,
@Pos(value=3)
String causeMessage,
@Cause
Exception e)
@Message(id=2002,
value="Could not find default name for @ConfigProperty InjectionPoint %s")
IllegalStateException noConfigPropertyDefaultName(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
@Message(id=2003,
value="Unhandled ConfigProperty")
IllegalStateException unhandledConfigProperty()
@Message(id=2004,
value="Required property %s not found")
NoSuchElementException propertyNotFound(String name)
@Message(id=2005,
value="Type has no raw type class: %s")
IllegalArgumentException noRawType(Type type)
@Message(id=2006,
value="The property %s cannot be converted to %s")
IllegalArgumentException illegalConversion(String name,
Type type)
@Message(id=2007,
value="No Converter registered for %s")
IllegalArgumentException noRegisteredConverter(Class<?> type)
static String formatInjectionPoint(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
static void appendParameterTypes(StringBuilder sb, Executable executable)
Copyright © 2018–2021. All rights reserved.