@@ -5396,6 +5396,7 @@ You can use these macros instead of the six-digit value, thus: `@Scheduled(cron
53965396|===
53975397
53985398
5399+
53995400[[scheduling-quartz]]
54005401=== Using the Quartz Scheduler
54015402
@@ -5451,7 +5452,6 @@ has it applied automatically:
54515452 protected void executeInternal(JobExecutionContext ctx) throws JobExecutionException {
54525453 // do the actual work
54535454 }
5454-
54555455 }
54565456----
54575457
@@ -5571,11 +5571,19 @@ seconds and one running every morning at 6 AM. To finalize everything, we need t
55715571 </bean>
55725572----
55735573
5574- More properties are available for the `SchedulerFactoryBean`, such as the calendars
5575- used by the job details, properties to customize Quartz with, and others . See the
5576- {api-spring-framework}/scheduling/quartz/SchedulerFactoryBean.html[`SchedulerFactoryBean`]
5574+ More properties are available for the `SchedulerFactoryBean`, such as the calendars used by the
5575+ job details, properties to customize Quartz with, and a Spring-provided JDBC DataSource . See
5576+ the {api-spring-framework}/scheduling/quartz/SchedulerFactoryBean.html[`SchedulerFactoryBean`]
55775577javadoc for more information.
55785578
5579+ NOTE: `SchedulerFactoryBean` also recognizes a `quartz.properties` file in the classpath,
5580+ based on Quartz property keys, as with regular Quartz configuration. Please note that many
5581+ `SchedulerFactoryBean` settings interact with common Quartz settings in the properties file;
5582+ it is therefore not recommended to specify values at both levels. For example, do not set
5583+ an "org.quartz.jobStore.class" property if you mean to rely on a Spring-provided DataSource,
5584+ or specify an `org.springframework.scheduling.quartz.LocalDataSourceJobStore` variant which
5585+ is a full-fledged replacement for the standard `org.quartz.impl.jdbcjobstore.JobStoreTX`.
5586+
55795587
55805588
55815589
@@ -5877,7 +5885,6 @@ is updated in the cache. The following example shows how to use the `sync` attri
58775885----
58785886<1> Using the `sync` attribute.
58795887
5880-
58815888NOTE: This is an optional feature, and your favorite cache library may not support it.
58825889All `CacheManager` implementations provided by the core framework support it. See the
58835890documentation of your cache provider for more details.
@@ -6035,7 +6042,6 @@ all entries from the `books` cache:
60356042----
60366043<1> Using the `allEntries` attribute to evict all entries from the cache.
60376044
6038-
60396045This option comes in handy when an entire cache region needs to be cleared out.
60406046Rather than evicting each entry (which would take a long time, since it is inefficient),
60416047all the entries are removed in one operation, as the preceding example shows.
@@ -6094,7 +6100,6 @@ comes into play. The following examples uses `@CacheConfig` to set the name of t
60946100----
60956101<1> Using `@CacheConfig` to set the name of the cache.
60966102
6097-
60986103`@CacheConfig` is a class-level annotation that allows sharing the cache names,
60996104the custom `KeyGenerator`, the custom `CacheManager`, and the custom `CacheResolver`.
61006105Placing this annotation on the class does not turn on any caching operation.
@@ -6235,13 +6240,11 @@ if you need to annotate non-public methods, as it changes the bytecode itself.
62356240****
62366241
62376242TIP: Spring recommends that you only annotate concrete classes (and methods of concrete
6238- classes) with the `@Cache{asterisk}` annotation, as opposed to annotating interfaces.
6239- You certainly can place the `@Cache{asterisk}` annotation on an interface (or an interface
6240- method), but this works only as you would expect it to if you use interface-based proxies.
6241- The fact that Java annotations are not inherited from interfaces means that, if you use
6242- class-based proxies (`proxy-target-class="true"`) or the weaving-based aspect
6243- (`mode="aspectj"`), the caching settings are not recognized by the proxying and weaving
6244- infrastructure, and the object is not wrapped in a caching proxy.
6243+ classes) with the `@Cache{asterisk}` annotations, as opposed to annotating interfaces.
6244+ You certainly can place an `@Cache{asterisk}` annotation on an interface (or an interface
6245+ method), but this works only if you use the proxy mode (`mode="proxy"`). If you use the
6246+ weaving-based aspect (`mode="aspectj"`), the caching settings are not recognized on
6247+ interface-level declarations by the weaving infrastructure.
62456248
62466249NOTE: In proxy mode (the default), only external method calls coming in through the
62476250proxy are intercepted. This means that self-invocation (in effect, a method within the
@@ -6378,7 +6381,6 @@ to customize the factory for each cache operation, as the following example show
63786381----
63796382<1> Customizing the factory for this operation.
63806383
6381-
63826384NOTE: For all referenced classes, Spring tries to locate a bean with the given type.
63836385If more than one match exists, a new instance is created and can use the regular
63846386bean lifecycle callbacks, such as dependency injection.
0 commit comments