com.vaadin.flow.spring.annotation.

Annotation Interface VaadinTaskExecutor

@Target({FIELD,METHOD,PARAMETER,TYPE,ANNOTATION_TYPE}) @Retention(RUNTIME) @Documented @Inherited @Qualifier public @interface VaadinTaskExecutor

Qualifier annotation for marking a TaskExecutor bean as a Vaadin-specific Executor.

The bean annotated with this qualifier will function as the primary TaskExecutor for Vaadin-specific asynchronous operations.

Alternatively, a TaskExecutor bean can be declared with the name VaadinTaskExecutor.

Constraints:

  • There should be at most one TaskExecutor bean annotated with @VaadinTaskExecutor.
  • Both an annotated bean and a bean with the name VaadinTaskExecutor cannot exist simultaneously.

To prevent a custom executor from replacing the default one, consider setting @Bean(defaultCandidate=false) on your bean definition.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String

    The name of the TaskExecutor bean specifically used for Vaadin-related asynchronous tasks.

  • Field Details

    • NAME

      static final String NAME

      The name of the TaskExecutor bean specifically used for Vaadin-related asynchronous tasks. This constant can be used as a bean name to designate a single TaskExecutor implementation as the primary executor for handling Vaadin-specific task execution.

      See Also: