类 AnsiPropertySource
- java.lang.Object
- org.springframework.core.env.PropertySource<AnsiElement>
- org.springframework.boot.ansi.AnsiPropertySource
public class AnsiPropertySource extends org.springframework.core.env.PropertySource<AnsiElement>
PropertyResolver
forAnsiStyle
,AnsiColor
andAnsiBackground
elements. Supports properties of the formAnsiStyle.BOLD
,AnsiColor.RED
orAnsiBackground.GREEN
. Also supports a prefix ofAnsi.
which is an aggregation of everything (with background colors prefixedBG_
).- 从以下版本开始:
- 1.3.0
构造器概要
构造器 构造器 说明 AnsiPropertySource(String name, boolean encode)
Create a newAnsiPropertySource
instance.
构造器详细资料
AnsiPropertySource
public AnsiPropertySource(String name, boolean encode)
Create a newAnsiPropertySource
instance.- 参数:
name
- the name of the property sourceencode
- if the output should be encoded
方法详细资料
getProperty
public Object getProperty(String name)
- 指定者:
getProperty
在类中org.springframework.core.env.PropertySource<AnsiElement>