![JAR search and dependency download from the Maven repository](/logo.png)
net.redhogs.cronparser.format.CronExpressionFormatter Maven / Gradle / Ivy
package net.redhogs.cronparser.format;
import java.text.ParseException;
import java.util.Locale;
import net.redhogs.cronparser.CronExpressionDescriptor;
import net.redhogs.cronparser.Options;
import org.quartz.CronExpression;
import org.springframework.format.Formatter;
/**
* A Spring formatter that can be used to format a Quartz cron expression.
*
* It can be used like
*
*
* <bean id="conversionService"
* class="org.springframework.format.support.FormattingConversionServiceFactoryBean">
* <property name="formatters">
* <set>
* <bean class="net.redhogs.cronparser.format.CronExpressionFormatter"/>
* </set>
* </property>
* </bean>
*
*
* In ThymeLeaf, a cron expression can be displayed as ${{cronExpression}}
.
*/
public class CronExpressionFormatter implements Formatter© 2015 - 2025 Weber Informatics LLC | Privacy Policy