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
An
ApplicationListener
that configures AnsiOutput
depending on the
value of the property spring.output.ansi.enabled
. See AnsiOutput.Enabled
for valid
values.- Since:
- 1.2.0
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecution
-
Constructor Details
-
AnsiOutputApplicationListener
public AnsiOutputApplicationListener()
-
-
Method Details
-
onApplicationEvent
- Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<ApplicationEnvironmentPreparedEvent>
-
getOrder
public int getOrder()- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
-