Search in sources :

Example 1 with AnsiPropertySource

use of cn.taketoday.framework.ansi.AnsiPropertySource in project today-infrastructure by TAKETODAY.

the class ResourceBanner method getAnsiResolver.

private PropertyResolver getAnsiResolver() {
    PropertySources sources = new PropertySources();
    sources.addFirst(new AnsiPropertySource("ansi", true));
    return new PropertySourcesPropertyResolver(sources);
}
Also used : PropertySourcesPropertyResolver(cn.taketoday.core.env.PropertySourcesPropertyResolver) PropertySources(cn.taketoday.core.env.PropertySources) AnsiPropertySource(cn.taketoday.framework.ansi.AnsiPropertySource)

Example 2 with AnsiPropertySource

use of cn.taketoday.framework.ansi.AnsiPropertySource in project today-framework by TAKETODAY.

the class ResourceBanner method getAnsiResolver.

private PropertyResolver getAnsiResolver() {
    PropertySources sources = new PropertySources();
    sources.addFirst(new AnsiPropertySource("ansi", true));
    return new PropertySourcesPropertyResolver(sources);
}
Also used : PropertySourcesPropertyResolver(cn.taketoday.core.env.PropertySourcesPropertyResolver) PropertySources(cn.taketoday.core.env.PropertySources) AnsiPropertySource(cn.taketoday.framework.ansi.AnsiPropertySource)

Aggregations

PropertySources (cn.taketoday.core.env.PropertySources)2 PropertySourcesPropertyResolver (cn.taketoday.core.env.PropertySourcesPropertyResolver)2 AnsiPropertySource (cn.taketoday.framework.ansi.AnsiPropertySource)2