类 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.
- 从以下版本开始:
- 1.3.0
- 作者:
- Phillip Webb, Toshiaki Maki
-
嵌套类概要
从类继承的嵌套类/接口 org.springframework.core.env.PropertySource
PropertySource.StubPropertySource -
字段概要
从类继承的字段 org.springframework.core.env.PropertySource
logger, name, source -
构造器概要
构造器 -
方法概要
从类继承的方法 org.springframework.core.env.PropertySource
containsProperty, equals, getName, getSource, hashCode, named, toString
-
构造器详细资料
-
AnsiPropertySource
Create a newAnsiPropertySourceinstance.- 参数:
name- the name of the property sourceencode- if the output should be encoded
-
-
方法详细资料
-
getProperty
- 指定者:
getProperty在类中PropertySource<AnsiElement>
-