@Test public void nflowThreadFactoryInstantiated() { ThreadFactory factory = configuration.nflowThreadFactory(); assertThat(factory, instanceOf(CustomizableThreadFactory.class)); assertThat(((CustomizableThreadFactory) factory).getThreadNamePrefix(), is("nflow-executor-")); assertThat(((CustomizableThreadFactory) factory).getThreadGroup().getName(), is("nflow")); }
@Bean @NFlow public ThreadFactory nflowThreadFactory() { CustomizableThreadFactory factory = new CustomizableThreadFactory("nflow-executor-"); factory.setThreadGroupName("nflow"); return factory; }
EngineConfiguration { @Bean @NFlow public ThreadFactory nflowThreadFactory() { CustomizableThreadFactory factory = new CustomizableThreadFactory("nflow-executor-"); factory.setThreadGroupName("nflow"); return factory; } }
EngineConfiguration { @Bean @NFlow public ThreadFactory nflowThreadFactory() { CustomizableThreadFactory factory = new CustomizableThreadFactory("nflow-executor-"); factory.setThreadGroupName("nflow"); return factory; }  }
EngineConfiguration { @Bean @NFlow public ThreadFactory nflowThreadFactory() { CustomizableThreadFactory factory = new CustomizableThreadFactory("nflow-executor-"); factory.setThreadGroupName("nflow"); return factory; }  @Bean WorkflowInstanceExecutor nflowExecutor(@NFlow ThreadFactory nflowThreadFactory, Environment env); @Bean @NFlow ThreadFactory nflowThreadFactory(); @Bean @NFlow ObjectMapper nflowObjectMapper(); @Bean @NFlow AbstractResource nflowNonSpringWorkflowsListing(Environment env); }
EngineConfiguration { @Bean @NFlow public ThreadFactory nflowThreadFactory() { CustomizableThreadFactory factory = new CustomizableThreadFactory("nflow-executor-"); factory.setThreadGroupName("nflow"); return factory; }  @Bean WorkflowInstanceExecutor nflowExecutor(@NFlow ThreadFactory nflowThreadFactory, Environment env); @Bean @NFlow ThreadFactory nflowThreadFactory(); @Bean @NFlow ObjectMapper nflowObjectMapper(); @Bean @NFlow AbstractResource nflowNonSpringWorkflowsListing(Environment env);  }