@@ -8329,7 +8329,7 @@ synchronously. This means the `publishEvent()` method blocks until all listeners
8329
8329
finished processing the event. One advantage of this synchronous and single-threaded
8330
8330
approach is that when a listener receives an event, it operates inside the transaction
8331
8331
context of the publisher if a transaction context is available. If another strategy for
8332
- event publication becomes necessary, refer to the JavaDoc for Spring's
8332
+ event publication becomes necessary, refer to the javadoc for Spring's
8333
8333
`ApplicationEventMulticaster` interface.
8334
8334
8335
8335
The following example shows the bean definitions used to register and configure each of
@@ -8396,9 +8396,10 @@ follows:
8396
8396
}
8397
8397
----
8398
8398
8399
- As you can see above, the method signature actually _infer_ which even type it listens to. This
8400
- also works for nested generics as long as the actual event resolves the generics parameter you
8401
- would filter on.
8399
+ As you can see above, the method signature once again declares the event type it listens to,
8400
+ but this time with a flexible name and without implementing a specific listener interface.
8401
+ The event type can also be narrowed through generics as long as the actual event type
8402
+ resolves your generic parameter in its implementation hierarchy.
8402
8403
8403
8404
If your method should listen to several events or if you want to define it with no
8404
8405
parameter at all, the event type(s) can also be specified on the annotation itself:
@@ -8408,7 +8409,7 @@ parameter at all, the event type(s) can also be specified on the annotation itse
8408
8409
----
8409
8410
@EventListener({ContextStartedEvent.class, ContextRefreshedEvent.class})
8410
8411
public void handleContextStart() {
8411
-
8412
+ ...
8412
8413
}
8413
8414
----
8414
8415
@@ -8658,15 +8659,15 @@ platform's JMX server - all through Spring's standard transaction management and
8658
8659
and JMX support facilities. Application components can also interact with the
8659
8660
application server's JCA WorkManager through Spring's `TaskExecutor` abstraction.
8660
8661
8661
- Check out the JavaDoc of the
8662
+ Check out the javadoc of the
8662
8663
{api-spring-framework}/jca/context/SpringContextResourceAdapter.html[`SpringContextResourceAdapter`]
8663
8664
class for the configuration details involved in RAR deployment.
8664
8665
8665
8666
__For a simple deployment of a Spring ApplicationContext as a Java EE RAR file:__ package
8666
8667
all application classes into a RAR file, which is a standard JAR file with a different
8667
8668
file extension. Add all required library JARs into the root of the RAR archive. Add a
8668
8669
"META-INF/ra.xml" deployment descriptor (as shown in ``SpringContextResourceAdapter``s
8669
- JavaDoc ) and the corresponding Spring XML bean definition file(s) (typically
8670
+ javadoc ) and the corresponding Spring XML bean definition file(s) (typically
8670
8671
"META-INF/applicationContext.xml"), and drop the resulting RAR file into your
8671
8672
application server's deployment directory.
8672
8673
0 commit comments