Class WorkersAutoDiscoveryProperties

java.lang.Object
io.temporal.spring.boot.autoconfigure.properties.WorkersAutoDiscoveryProperties

public class WorkersAutoDiscoveryProperties extends Object
  • Constructor Details

    • WorkersAutoDiscoveryProperties

      @ConstructorBinding public WorkersAutoDiscoveryProperties(@Nullable Boolean enabled, @Nullable List<String> workflowPackages, @Nullable Boolean registerActivityBeans, @Nullable Boolean registerNexusServiceBeans, @Nullable List<String> packages)
  • Method Details

    • isRegisterWorkflowManagedBeans

      public boolean isRegisterWorkflowManagedBeans()
      Returns whether @WorkflowImpl-annotated classes that are also Spring-managed beans should be automatically registered with matching workers (without classpath scanning). Defaults to true when enabled is true, false otherwise. Workflow implementation classes that are not Spring-managed beans still require workflowPackages for classpath scanning.
    • isRegisterActivityBeans

      public boolean isRegisterActivityBeans()
      Returns whether @ActivityImpl-annotated beans should be automatically registered with matching workers. Defaults to true when enabled is true or when the deprecated packages property is set and non-empty; false otherwise.
    • isRegisterNexusServiceBeans

      public boolean isRegisterNexusServiceBeans()
      Returns whether @NexusServiceImpl-annotated beans should be automatically registered with matching workers. Defaults to true when enabled is true or when the deprecated packages property is set and non-empty; false otherwise.
    • getEffectiveWorkflowPackages

      public List<String> getEffectiveWorkflowPackages()
      Returns the list of packages to scan for @WorkflowImpl classes. When the deprecated packages property is set, its entries are used; otherwise returns the entries of workflowPackages. The two properties cannot be set simultaneously.
    • getWorkflowPackages

      @Nullable public List<String> getWorkflowPackages()
    • getPackages

      @Deprecated @DeprecatedConfigurationProperty(replacement="spring.temporal.workers-auto-discovery.workflow-packages", reason="'packages' has unclear semantics with regard to registration of activity and nexus service beans; use 'workflow-packages' instead") @Nullable public List<String> getPackages()
      Deprecated.
      `packages` has unclear semantics with regard to registration of activity and nexus service beans; use getWorkflowPackages() instead.