Package io.jmix.quartz.autoconfigure
Class QuartzEnvironmentPostProcessor
java.lang.Object
io.jmix.quartz.autoconfigure.QuartzEnvironmentPostProcessor
- All Implemented Interfaces:
org.springframework.boot.env.EnvironmentPostProcessor
public class QuartzEnvironmentPostProcessor
extends Object
implements org.springframework.boot.env.EnvironmentPostProcessor
Used to set into application properties required property '
org.quartz.jobStore.driverDelegateClass
' that
used by Quartz to understand the particular ‘dialects’ of varies database systems. It allows not to carry about setting that property into certain project.
Logic of proper choice for value of that property based on actual value of database connection URL property. This URL is specific for particular DBs, so it allows defining which DB is used by the project and setting up a proper driver delegate class.
Note, that for HSQLDB and MySQL we don't need to use specific driver delegate, standard one will be used.
- See Also:
-
StdJDBCDelegate
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
postProcessEnvironment
(org.springframework.core.env.ConfigurableEnvironment environment, org.springframework.boot.SpringApplication application)
-
Constructor Details
-
QuartzEnvironmentPostProcessor
public QuartzEnvironmentPostProcessor()
-
-
Method Details
-
postProcessEnvironment
public void postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, org.springframework.boot.SpringApplication application) - Specified by:
postProcessEnvironment
in interfaceorg.springframework.boot.env.EnvironmentPostProcessor
-