use of io.micronaut.context.env.DefaultPropertyPlaceholderResolver in project micronaut-graphql by micronaut-projects.
the class GraphiQLController method replaceParameters.
private String replaceParameters(final String str, final Map<String, String> parameters) {
Map<String, Object> map = new HashMap<>();
map.putAll(parameters);
PropertyResolver propertyResolver = new MapPropertyResolver(map);
PropertyPlaceholderResolver propertyPlaceholderResolver = new DefaultPropertyPlaceholderResolver(propertyResolver, conversionService);
return propertyPlaceholderResolver.resolvePlaceholders(str).get();
}
Aggregations