Class AnsiOutputApplicationListener
- java.lang.Object
- org.springframework.boot.context.config.AnsiOutputApplicationListener
- All Implemented Interfaces:
EventListener
,org.springframework.context.ApplicationListener<ApplicationEnvironmentPreparedEvent>
,org.springframework.core.Ordered
public class AnsiOutputApplicationListener extends Object implements org.springframework.context.ApplicationListener<ApplicationEnvironmentPreparedEvent>, org.springframework.core.Ordered
AnApplicationListener
that configuresAnsiOutput
depending on the value of the propertyspring.output.ansi.enabled
. SeeAnsiOutput.Enabled
for valid values.- Since:
- 1.2.0
Constructor Summary
Constructors Constructor Description AnsiOutputApplicationListener()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getOrder()
void
onApplicationEvent(ApplicationEnvironmentPreparedEvent event)
Constructor Detail
AnsiOutputApplicationListener
public AnsiOutputApplicationListener()
Method Detail
onApplicationEvent
public void onApplicationEvent(ApplicationEnvironmentPreparedEvent event)
- Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<ApplicationEnvironmentPreparedEvent>
getOrder
public int getOrder()
- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered