Skip to content

Commit 96f8ee2

Browse files
committed
Fix include/exclude filters documentation.
Closes #2969
1 parent d83dd7e commit 96f8ee2

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/main/antora/modules/ROOT/pages/repositories/create-instances.adoc

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,20 +94,18 @@ XML::
9494
[source,xml,role="secondary"]
9595
----
9696
<repositories base-package="com.acme.repositories">
97-
<context:exclude-filter type="regex" expression=".*SomeRepository" />
98-
<context:include-filter type="regex" expression=".*SomeOtherRepository" />
97+
<context:include-filter type="regex" expression=".*SomeRepository" />
98+
<context:exclude-filter type="regex" expression=".*SomeOtherRepository" />
9999
</repositories>
100100
----
101101
======
102102

103-
104-
The preceding example excludes all interfaces ending in `SomeRepository` from being instantiated and includes those ending with `SomeOtherRepository`.
105-
103+
The preceding example includes all interfaces ending with `SomeRepository` and excludes those ending with `SomeOtherRepository` from being instantiated.
106104

107105
[[repositories.create-instances.standalone]]
108106
== Standalone Usage
109107

110-
You can also use the repository infrastructure outside of a Spring container -- for example, in CDI environments. You still need some Spring libraries in your classpath, but, generally, you can set up repositories programmatically as well. The Spring Data modules that provide repository support ship with a persistence technology-specific `RepositoryFactory` that you can use, as follows:
108+
You can also use the repository infrastructure outside of a Spring container -- for example, in CDI environments.You still need some Spring libraries in your classpath, but, generally, you can set up repositories programmatically as well.The Spring Data modules that provide repository support ship with a persistence technology-specific `RepositoryFactory` that you can use, as follows:
111109

112110
.Standalone usage of the repository factory
113111
[source,java]

0 commit comments

Comments
 (0)