CDI Cron API

The Parent-POM for the CDI cron project

License

License

GroupId

GroupId

de.mirkosertic.cdicron
ArtifactId

ArtifactId

cdi-cron-api
Last Version

Last Version

1.1
Release Date

Release Date

Type

Type

jar
Description

Description

CDI Cron API
The Parent-POM for the CDI cron project
Project Organization

Project Organization

Systemprogrammierung Mirko Sertic

Download cdi-cron-api

How to add to project

<!-- https://jarcasting.com/artifacts/de.mirkosertic.cdicron/cdi-cron-api/ -->
<dependency>
    <groupId>de.mirkosertic.cdicron</groupId>
    <artifactId>cdi-cron-api</artifactId>
    <version>1.1</version>
</dependency>
// https://jarcasting.com/artifacts/de.mirkosertic.cdicron/cdi-cron-api/
implementation 'de.mirkosertic.cdicron:cdi-cron-api:1.1'
// https://jarcasting.com/artifacts/de.mirkosertic.cdicron/cdi-cron-api/
implementation ("de.mirkosertic.cdicron:cdi-cron-api:1.1")
'de.mirkosertic.cdicron:cdi-cron-api:jar:1.1'
<dependency org="de.mirkosertic.cdicron" name="cdi-cron-api" rev="1.1">
  <artifact name="cdi-cron-api" type="jar" />
</dependency>
@Grapes(
@Grab(group='de.mirkosertic.cdicron', module='cdi-cron-api', version='1.1')
)
libraryDependencies += "de.mirkosertic.cdicron" % "cdi-cron-api" % "1.1"
[de.mirkosertic.cdicron/cdi-cron-api "1.1"]

Dependencies

provided (1)

Group / Artifact Type Version
org.jboss.weld : weld-api jar 2.3.Final

test (2)

Group / Artifact Type Version
org.jboss.weld.se : weld-se-core jar 2.3.2.Final
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

CDI Cron

A CDI extension to schedule jobs as easy as Unix cron

Build Status Maven Central

Usage

Java Maven Dependency available from Central Repository:

<dependency>
    <groupId>de.mirkosertic.cdicron</groupId>
    <artifactId>cdi-cron-quartz-scheduler</artifactId>
    <version>1.1</version>
</dependency>

Example Java Code

import de.mirkosertic.cdicron.api.Cron;

@Singleton
public class DummyJob {

    public static final AtomicLong COUNTER = new AtomicLong(0);

    @Cron(cronExpression = "0/2 * * * * ?")
    public void scheduledMethod() {
        COUNTER.incrementAndGet();
    }
}

Versions

Version
1.1
1.0