Package org.springframework.boot.ansi
Class AnsiPropertySource
java.lang.Object
org.springframework.core.env.PropertySource<AnsiElement>
org.springframework.boot.ansi.AnsiPropertySource
PropertyResolver for AnsiStyle, AnsiColor,
 AnsiBackground and Ansi8BitColor elements. Supports properties of the
 form AnsiStyle.BOLD, AnsiColor.RED or AnsiBackground.GREEN.
 Also supports a prefix of Ansi. which is an aggregation of everything (with
 background colors prefixed BG_).
 
 ANSI 8-bit color codes can be used with AnsiColor and AnsiBackground.
 For example, AnsiColor.208 will render orange text.
 Wikipedia has a complete
 list of the 8-bit color codes that can be used.
- Since:
- 1.3.0
- Author:
- Phillip Webb, Toshiaki Maki
- 
Nested Class SummaryNested classes/interfaces inherited from class org.springframework.core.env.PropertySourcePropertySource.StubPropertySource
- 
Field SummaryFields inherited from class org.springframework.core.env.PropertySourcelogger, name, source
- 
Constructor SummaryConstructorsConstructorDescriptionAnsiPropertySource(String name, boolean encode) Create a newAnsiPropertySourceinstance.
- 
Method SummaryMethods inherited from class org.springframework.core.env.PropertySourcecontainsProperty, equals, getName, getSource, hashCode, named, toString
- 
Constructor Details- 
AnsiPropertySourceCreate a newAnsiPropertySourceinstance.- Parameters:
- name- the name of the property source
- encode- if the output should be encoded
 
 
- 
- 
Method Details- 
getProperty- Specified by:
- getPropertyin class- PropertySource<AnsiElement>
 
 
-