-
Notifications
You must be signed in to change notification settings - Fork 262
Architecture
jmrozanec edited this page Aug 15, 2014
·
3 revisions
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.
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
Describes the result from a parsed cron expression. Considers the object model used for cron expression abstraction to provide a description considering a Locale.