@@ -1361,7 +1361,7 @@ element.
1361
1361
1362
1362
<bean id="theClientBean" class="...">
1363
1363
<property name="targetName">
1364
- <idref bean="theTargetBean" />
1364
+ <idref bean="theTargetBean"/>
1365
1365
</property>
1366
1366
</bean>
1367
1367
----
@@ -1375,7 +1375,7 @@ following snippet:
1375
1375
<bean id="theTargetBean" class="..." />
1376
1376
1377
1377
<bean id="client" class="...">
1378
- <property name="targetName" value="theTargetBean" />
1378
+ <property name="targetName" value="theTargetBean"/>
1379
1379
</bean>
1380
1380
----
1381
1381
@@ -5412,7 +5412,7 @@ comma/semicolon/space-separated list that includes the parent package of each cl
5412
5412
[NOTE]
5413
5413
====
5414
5414
for concision, the above may have used the `value` attribute of the
5415
- annotation, i.e. `ComponentScan("org.example")`
5415
+ annotation, i.e. `@ ComponentScan("org.example")`
5416
5416
====
5417
5417
5418
5418
The following is an alternative using XML
@@ -5965,6 +5965,11 @@ other beans through a `Provider.get()` call. As a variant of the example above:
5965
5965
5966
5966
private Provider<MovieFinder> movieFinder;
5967
5967
5968
+ @Inject
5969
+ public void setMovieFinder(Provider<MovieFinder> movieFinder) {
5970
+ this.movieFinder = movieFinder;
5971
+ }
5972
+
5968
5973
public void listMovies() {
5969
5974
this.movieFinder.get().findMovies(...);
5970
5975
...
@@ -8314,7 +8319,7 @@ synchronously. This means the `publishEvent()` method blocks until all listeners
8314
8319
finished processing the event. One advantage of this synchronous and single-threaded
8315
8320
approach is that when a listener receives an event, it operates inside the transaction
8316
8321
context of the publisher if a transaction context is available. If another strategy for
8317
- event publication becomes necessary, refer to the JavaDoc for Spring's
8322
+ event publication becomes necessary, refer to the javadoc for Spring's
8318
8323
`ApplicationEventMulticaster` interface.
8319
8324
8320
8325
The following example shows the bean definitions used to register and configure each of
@@ -8381,9 +8386,10 @@ follows:
8381
8386
}
8382
8387
----
8383
8388
8384
- As you can see above, the method signature actually _infer_ which even type it listens to. This
8385
- also works for nested generics as long as the actual event resolves the generics parameter you
8386
- would filter on.
8389
+ As you can see above, the method signature once again declares the event type it listens to,
8390
+ but this time with a flexible name and without implementing a specific listener interface.
8391
+ The event type can also be narrowed through generics as long as the actual event type
8392
+ resolves your generic parameter in its implementation hierarchy.
8387
8393
8388
8394
If your method should listen to several events or if you want to define it with no
8389
8395
parameter at all, the event type(s) can also be specified on the annotation itself:
@@ -8393,7 +8399,7 @@ parameter at all, the event type(s) can also be specified on the annotation itse
8393
8399
----
8394
8400
@EventListener({ContextStartedEvent.class, ContextRefreshedEvent.class})
8395
8401
public void handleContextStart() {
8396
-
8402
+ ...
8397
8403
}
8398
8404
----
8399
8405
@@ -8643,15 +8649,15 @@ platform's JMX server - all through Spring's standard transaction management and
8643
8649
and JMX support facilities. Application components can also interact with the
8644
8650
application server's JCA WorkManager through Spring's `TaskExecutor` abstraction.
8645
8651
8646
- Check out the JavaDoc of the
8652
+ Check out the javadoc of the
8647
8653
{api-spring-framework}/jca/context/SpringContextResourceAdapter.html[`SpringContextResourceAdapter`]
8648
8654
class for the configuration details involved in RAR deployment.
8649
8655
8650
8656
__For a simple deployment of a Spring ApplicationContext as a Java EE RAR file:__ package
8651
8657
all application classes into a RAR file, which is a standard JAR file with a different
8652
8658
file extension. Add all required library JARs into the root of the RAR archive. Add a
8653
8659
"META-INF/ra.xml" deployment descriptor (as shown in ``SpringContextResourceAdapter``s
8654
- JavaDoc ) and the corresponding Spring XML bean definition file(s) (typically
8660
+ javadoc ) and the corresponding Spring XML bean definition file(s) (typically
8655
8661
"META-INF/applicationContext.xml"), and drop the resulting RAR file into your
8656
8662
application server's deployment directory.
8657
8663
0 commit comments