Class EagerContextStartedListener

java.lang.Object
org.entur.jwt.client.spring.EagerContextStartedListener
All Implemented Interfaces:
EventListener, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextStartedEvent>

public class EagerContextStartedListener extends Object implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextStartedEvent>
This kicks off the eager JWT caching, if enabled. If fetching JWTs fail, a warning is logged.
  • Constructor Details

  • Method Details

    • onApplicationEvent

      public void onApplicationEvent(org.springframework.context.event.ContextStartedEvent cse)
      Specified by:
      onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextStartedEvent>