* @param injectionPoint current injection point
* @return the configured value for the given InjectionPoint
*/
protected String getStringPropertyValue(InjectionPoint injectionPoint)
{
ConfigProperty configProperty = getAnnotation(injectionPoint, ConfigProperty.class);
if (configProperty == null)
{
throw new IllegalStateException("producer method called without @ConfigProperty being present!");
}
String configuredValue;
String defaultValue = configProperty.defaultValue();
configuredValue = getPropertyValue(configProperty.name(), defaultValue);
return configuredValue;
}