Skip to content

Commit 28ecf0c

Browse files
committed
#1063 - Remove @EnableEntityLinks from documentation.
1 parent e5669ee commit 28ecf0c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/main/asciidoc/configuration.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ To let the `RepresentationModel` subtypes be rendered according to the specifica
1010

1111
* It registers necessary Jackson modules to render `EntityModel` and `CollectionModel` in the hypermedia specific format.
1212
* If JSONPath is on the classpath, it automatically registers a `LinkDiscoverer` instance to look up links by their `rel` in plain JSON representations (see <<client.link-discoverer>>).
13-
* By default, it enables `@EnableEntityLinks` (see <<fundamentals.obtaining-links.entity-links>>) and automatically picks up `EntityLinks` implementations and bundles them into a `DelegatingEntityLinks` instance that you can autowire.
13+
* By default, it enables <<fundamentals.obtaining-links.entity-links,entity links>> and automatically picks up `EntityLinks` implementations and bundles them into a `DelegatingEntityLinks` instance that you can autowire.
1414
* It automatically picks up all `RelProvider` implementations in the `ApplicationContext` and bundles them into a `DelegatingRelProvider` that you can autowire. It registers providers to consider `@Relation` on domain types as well as Spring MVC controllers. If the https://github.com/atteo/evo-inflector[EVO inflector] is on the classpath, collection `rel` values are derived by using the pluralizing algorithm implemented in the library (see <<spis.rel-provider>>).
1515

1616
[[configuration.at-enable.stacks]]

src/main/asciidoc/server.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ Link link = links.linkToItemResource(Customer.class, 1L);
283283
----
284284
====
285285

286-
`EntityLinks` is available via dependency injection by activating either `@EnableHypermediaSupprt` or `@EnableEntityLinks` in your Spring MVC configuration.
286+
`EntityLinks` is available via dependency injection by activating `@EnableHypermediaSupprt` in your Spring MVC configuration.
287287
This will cause a variety of default implementations of `EntityLinks` being registered.
288288
The most fundamental one is `ControllerEntityLinks` that inspects SpringMVC and Spring WebFlux controller classes.
289289
If you want to register your own implementation of `EntityLinks`, check out <<server.entity-links.spi, this section>>.
@@ -322,7 +322,7 @@ class OrderController {
322322
<4> An additional controller method to handle a subordinate resource taking a path variable to expose an item resource, i.e. a single `Order`.
323323
====
324324

325-
With this in place, when youy enable `EntityLinks` through `@EnableEntityLinks` or `@EnableHypermediaSupport` in your Spring MVC configuration, you can create links to the controller, as follows:
325+
With this in place, when you enable `EntityLinks` `@EnableHypermediaSupport` in your Spring MVC configuration, you can create links to the controller, as follows:
326326

327327
====
328328
[source, java]
@@ -344,7 +344,7 @@ class PaymentController {
344344
}
345345
}
346346
----
347-
<1> Inject `EntityLinks` made available by `@EnableEntityLinks` or `@EnableHypermediaSupport` in you configuration.
347+
<1> Inject `EntityLinks` made available by `@EnableHypermediaSupport` in you configuration.
348348
<2> Use the APIs to build links by using the entity types instead of controller classes.
349349
====
350350

@@ -416,7 +416,7 @@ class OrderController {
416416
[[server.entity-links.spi]]
417417
=== EntityLinks as SPI
418418

419-
The `EntityLinks` instance created by `@EnableEntityLinks` / `@EnableHypermediaSupport` is of type `DelegatingEntityLinks` which will in turn pick up all other `EntityLinks` implementations available as beans in the `ApplicationContext`.
419+
The `EntityLinks` instance created by `@EnableHypermediaSupport` is of type `DelegatingEntityLinks` which will in turn pick up all other `EntityLinks` implementations available as beans in the `ApplicationContext`.
420420
It's registered as primary bean so that it's always the sole injection candidate when you inject `EntityLinks` in general.
421421
`ControllerEntityLinks` is the default implementation that will be included in the setup, but users are free to implement and register their own implementations.
422422
Making those available to the `EntityLinks` instance available for injection is a matter of registering your implementation as Spring bean.

0 commit comments

Comments
 (0)