Class OpenTracingAsyncTaskListenerFactory
- java.lang.Object
-
- org.hawaiiframework.async.task_listener.OpenTracingAsyncTaskListenerFactory
-
- All Implemented Interfaces:
EventListener
,TaskListenerFactory
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
,org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>
public class OpenTracingAsyncTaskListenerFactory extends Object implements TaskListenerFactory, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>
Factory that creates aOpenTracingAsyncTaskListener
.
-
-
Constructor Summary
Constructors Constructor Description OpenTracingAsyncTaskListenerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TaskListener
create()
Create a task listener.void
onApplicationEvent(org.springframework.boot.context.event.ApplicationReadyEvent event)
void
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
-
-
Method Detail
-
create
public TaskListener create()
Description copied from interface:TaskListenerFactory
Create a task listener.- Specified by:
create
in interfaceTaskListenerFactory
- Returns:
- The task listener for this provider.
-
setApplicationContext
public void setApplicationContext(@NonNull org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
onApplicationEvent
public void onApplicationEvent(@NonNull org.springframework.boot.context.event.ApplicationReadyEvent event)
- Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>
-
-