Repository: deltaspike Updated Branches: refs/heads/master 4dbfd08ea -> cb62677ff
DELTASPIKE-846 Docs: Clarify that scheduler module has manual dependencies Project: http://git-wip-us.apache.org/repos/asf/deltaspike/repo Commit: http://git-wip-us.apache.org/repos/asf/deltaspike/commit/cb62677f Tree: http://git-wip-us.apache.org/repos/asf/deltaspike/tree/cb62677f Diff: http://git-wip-us.apache.org/repos/asf/deltaspike/diff/cb62677f Branch: refs/heads/master Commit: cb62677ff9e89cf09fe47daeda01febb57210d2e Parents: 4dbfd08 Author: Ron Smeral <[email protected]> Authored: Mon Mar 2 14:23:23 2015 +0100 Committer: Rafael Benevides <[email protected]> Committed: Tue Apr 7 10:05:54 2015 -0400 ---------------------------------------------------------------------- documentation/src/main/asciidoc/scheduler.adoc | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/deltaspike/blob/cb62677f/documentation/src/main/asciidoc/scheduler.adoc ---------------------------------------------------------------------- diff --git a/documentation/src/main/asciidoc/scheduler.adoc b/documentation/src/main/asciidoc/scheduler.adoc index 5e2a999..ad11560 100644 --- a/documentation/src/main/asciidoc/scheduler.adoc +++ b/documentation/src/main/asciidoc/scheduler.adoc @@ -43,6 +43,27 @@ By default, the Scheduler module looks to integrate with Quartz. If this is the </dependency> ---- +=== 3. Declare Container Control dependency + +Scheduled jobs can have built-in CDI contexts started for the duration of their execution using `@Scheduled#startScopes` which internally uses the <<container-control#, Container Control module>>. The dependency on the API and the appropriate implementation needs to be declared manually even if the feature is not used. An example for the Weld implementation: + +[source,xml] +---- +<dependency> + <groupId>org.apache.deltaspike.cdictrl</groupId> + <artifactId>deltaspike-cdictrl-api</artifactId> + <version>${deltaspike.version}</version> + <scope>compile</scope> +</dependency> + +<dependency> + <groupId>org.apache.deltaspike.cdictrl</groupId> + <artifactId>deltaspike-cdictrl-weld</artifactId> + <version>${deltaspike.version}</version> + <scope>runtime</scope> +</dependency> +---- + == Use the Module Features === @Scheduled
