Skip to content
jmrozanec edited this page Aug 13, 2014 · 6 revisions

Welcome to the cron-utils wiki! On this page you will find technical and usage details about the project.

Architecture

cron-utils has currently two main components: parser and descriptor. Using two components, we keep parsing and description decoupled, giving us more flexibility to handle specific cases and a wide range of crons as well as making it extensible.

Parser

A builder pattern is used to define custom parsers. A ParserRegistry is provided, where common parsers are defined (unix, cron4j, quartz). The cron parser is responsible for:

  • parsing a cron expression
  • validate the expression matches required constraints (ex.: special characters, number ranges)
  • create a representation of the cron expression

Descriptor

Describes the result from a parsed cron expression. Considers the object model used for cron expression abstraction to provide a description considering a Locale.

Clone this wiki locally