a9f882f24b536002a1b8f183630ee92ec4d39bf2
* `DefaultTaskConfigurer` returns only one `SimpleTaskRepository` all others have been removed * `SimpleTaskRepository` can use `JdbcTaskExecutionDao` or a `MapTaskExecutionDao` * Add `Jdbc` and Map` `TaskRepositoryFactoryBeans` to support the creation of the correct type of `SimpleTaskRepository` * `TaskDatabaseInitializer` will initialize a database if a datasource is found and if they have not disabled it using the `spring.task.initialize.enable` * Add tests * Added Transaction Support * Re-add the samples to `pom.xml` * Samples pom skips install and deploy lifecycle targets.
= Spring Cloud Task image:https://badge.waffle.io/spring-cloud/spring-cloud-task.svg?label=ready&title=Ready[Stories in Ready, link=http://waffle.io/spring-cloud/spring-cloud-task] image:https://badge.waffle.io/spring-cloud/spring-cloud-task.svg?label=In%20Progress&title=In%20Progress[Stories in Progress, link=http://waffle.io/spring-cloud/spring-cloud-task]
Is a project centered around the idea of processing on demand. A user is able to develop
a “task” that can be deployed, executed and removed on demand, yet the result of the
process persists beyond the life of the task for future reporting.
== Requirements:
* Java 7 or Above
== Build:
[source,shell,indent=2]
----
$ mvn -s settings.xml clean install
----
== Example:
[source,java,indent=2]
----
@SpringBootApplication
@EnableTask
public class MyApp {
@Bean
public MyTask myTask() {
return new MyTask();
}
public static void main(String[] args) {
SpringApplication.run(MyApp.class);
}
@Task("HelloWorldTask")
public static class MyTask implements CommandLineRunner {
@Override
public void run(String... strings) throws Exception {
System.out.println("Hello World");
}
}
}
----
Description
Languages
Java
92.4%
XSLT
6.4%
CSS
1.1%