Class OMAGServerPlatform.ApplicationContextListener
java.lang.Object
org.odpi.openmetadata.serverchassis.springboot.OMAGServerPlatform.ApplicationContextListener
- Enclosing class:
- OMAGServerPlatform
ApplicationContextListener detects various events during the lifetime of the OMAGServerPlatform run.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Print out message to say that the platform is ready.void
onApplicationEvent
(org.springframework.context.event.ContextClosedEvent event) Detect platform shutdown.
-
Constructor Details
-
ApplicationContextListener
public ApplicationContextListener()
-
-
Method Details
-
applicationReady
@EventListener(org.springframework.boot.context.event.ApplicationReadyEvent.class) public void applicationReady()Print out message to say that the platform is ready. -
onApplicationEvent
@EventListener public void onApplicationEvent(org.springframework.context.event.ContextClosedEvent event) Detect platform shutdown.- Parameters:
event
- unused event information
-