Reference Documentation: Why does not exist an XML configuration version for @Async? [SPR-14164] #18736
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: backported
An issue that has been backported to maintenance branches
type: documentation
A documentation task
Milestone
Manuel Jordan opened SPR-14164 and commented
I am doing some experiments about tasks and scheduling
After to read all this (my following content): consider include the explanation in the Reference documentation.
Taking in consideration first approach to declare a bean in Spring was with XML, later with annotations (
@Component
,@Service
etc) and finally with JavaConfig.I did realise about the following:
If we have
@Scheduled
, we have the XML version too such as:And if we have
@Async
, why is not available an XML equivalent configuration?Perhaps, something like
It thinking if the developer does not want apply
@Scheduled
, how he can do the same approach for@Async
?Perhaps we have a .class or .jar file and we want apply
Async
support for a POJO wherethe .java class is not available
I already have read the javadoc for @Async and reference documentation 33. Task Execution and Scheduling. There is no explanation about this behaviour
I am OK with these two annotations, but just wondered why does not exist for
@Async
the XML equivalent configuration such as@Scheduled
.Thanks
Affects: 4.2 GA, 4.2.3, 4.3 RC1
Backported to: 4.2.7
The text was updated successfully, but these errors were encountered: