Skip to content

Commit 8c67c79

Browse files
committed
Fix include/exclude filters documentation.
Closes #2969
1 parent c9a2dcc commit 8c67c79

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/asciidoc/repositories.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -979,20 +979,20 @@ ifeval::[{include-xml-namespaces} != false]
979979
[source,xml,role="secondary"]
980980
----
981981
<repositories base-package="com.acme.repositories">
982-
<context:exclude-filter type="regex" expression=".*SomeRepository" />
983-
<context:include-filter type="regex" expression=".*SomeOtherRepository" />
982+
<context:include-filter type="regex" expression=".*SomeRepository" />
983+
<context:exclude-filter type="regex" expression=".*SomeOtherRepository" />
984984
</repositories>
985985
----
986986
endif::[]
987987
====
988988

989-
The preceding example excludes all interfaces ending in `SomeRepository` from being instantiated and includes those ending with `SomeOtherRepository`.
989+
The preceding example includes all interfaces ending with `SomeRepository` and excludes those ending with `SomeOtherRepository` from being instantiated.
990990

991991

992992
[[repositories.create-instances.standalone]]
993993
=== Standalone Usage
994994

995-
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:
995+
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:
996996

997997
.Standalone usage of the repository factory
998998
====

0 commit comments

Comments
 (0)