@Test public void nonSpringWorkflowsListingInstantiationAttempted() { environment.withProperty("nflow.non_spring_workflows_filename", "dummy"); assertEquals(configuration.nflowNonSpringWorkflowsListing(environment).getFilename(), "dummy"); }
@Bean @NFlow public AbstractResource nflowNonSpringWorkflowsListing(Environment env) { String filename = env.getProperty("nflow.non_spring_workflows_filename"); if (filename != null) { return new ClassPathResource(filename); } return new ByteArrayResource(new byte[0]); }
EngineConfiguration { @Bean @NFlow public AbstractResource nflowNonSpringWorkflowsListing(Environment env) { String filename = env.getProperty("nflow.non_spring_workflows_filename"); if (filename != null) { return new ClassPathResource(filename); } return new ByteArrayResource(new byte[0]); } }
EngineConfiguration { @Bean @NFlow public AbstractResource nflowNonSpringWorkflowsListing(Environment env) { String filename = env.getProperty("nflow.non_spring_workflows_filename"); if (filename != null) { return new ClassPathResource(filename); } return new ByteArrayResource(new byte[0]); }  }
EngineConfiguration { @Bean @NFlow public AbstractResource nflowNonSpringWorkflowsListing(Environment env) { String filename = env.getProperty("nflow.non_spring_workflows_filename"); if (filename != null) { return new ClassPathResource(filename); } return new ByteArrayResource(new byte[0]); }  @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 AbstractResource nflowNonSpringWorkflowsListing(Environment env) { String filename = env.getProperty("nflow.non_spring_workflows_filename"); if (filename != null) { return new ClassPathResource(filename); } return new ByteArrayResource(new byte[0]); }  @Bean WorkflowInstanceExecutor nflowExecutor(@NFlow ThreadFactory nflowThreadFactory, Environment env); @Bean @NFlow ThreadFactory nflowThreadFactory(); @Bean @NFlow ObjectMapper nflowObjectMapper(); @Bean @NFlow AbstractResource nflowNonSpringWorkflowsListing(Environment env);  }