Class HvlAsyncTokenStartupContextListener
java.lang.Object
tr.com.havelsan.javarch.oauth.async.token.provider.context.listener.HvlAsyncTokenStartupContextListener
- All Implemented Interfaces:
EventListener
,org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationPreparedEvent>
@Component
public class HvlAsyncTokenStartupContextListener
extends Object
implements org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationPreparedEvent>
The class in which the token is initialized in context.
-
Constructor Summary
ConstructorDescriptionHvlAsyncTokenStartupContextListener
(HvlAsyncTokenAuthenticationService asyncTokenAuthenticationService, HvlAsyncTokenProperties asyncTokenProperties) Instantiates a new HvlAsyncTokenStartupContextListener. -
Method Summary
Modifier and TypeMethodDescriptionvoid
onApplicationEvent
(org.springframework.boot.context.event.ApplicationPreparedEvent event)
-
Constructor Details
-
HvlAsyncTokenStartupContextListener
public HvlAsyncTokenStartupContextListener(HvlAsyncTokenAuthenticationService asyncTokenAuthenticationService, HvlAsyncTokenProperties asyncTokenProperties) Instantiates a new HvlAsyncTokenStartupContextListener.- Parameters:
asyncTokenAuthenticationService
- the async token authentication serviceasyncTokenProperties
- the async token properties
-
-
Method Details
-
onApplicationEvent
public void onApplicationEvent(org.springframework.boot.context.event.ApplicationPreparedEvent event) - Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationPreparedEvent>
-