Class BackgroundPreinitializer
- java.lang.Object
- org.springframework.boot.autoconfigure.BackgroundPreinitializer
- All Implemented Interfaces:
EventListener
,org.springframework.context.ApplicationListener<org.springframework.boot.context.event.SpringApplicationEvent>
@Order(-2147483627) public class BackgroundPreinitializer extends Object implements org.springframework.context.ApplicationListener<org.springframework.boot.context.event.SpringApplicationEvent>
ApplicationListener
to trigger early initialization in a background thread of time consuming tasks.- Since:
- 1.3.0
Constructor Summary
Constructors Constructor Description BackgroundPreinitializer()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onApplicationEvent(org.springframework.boot.context.event.SpringApplicationEvent event)
Constructor Detail
BackgroundPreinitializer
public BackgroundPreinitializer()
Method Detail
onApplicationEvent
public void onApplicationEvent(org.springframework.boot.context.event.SpringApplicationEvent event)
- Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<org.springframework.boot.context.event.SpringApplicationEvent>