public static CronDefinition instanceDefinitionFor ( final CronType cronType ) { switch ( cronType ) { case CRON4J : return cron4j ( ) ; case QUARTZ : return quartz ( ) ; case UNIX : return unixCrontab ( ) ; case SPRING : return spring ( ) ; default : throw new IllegalArgumentException ( String . format ( "No cron definition found for %s" , cronType ) ) ; } }
Creates CronDefinition instance matching cronType specification .