diff --git a/src/docbkx/repositories.xml b/src/docbkx/repositories.xml
index f225b27a2..a97899b7a 100644
--- a/src/docbkx/repositories.xml
+++ b/src/docbkx/repositories.xml
@@ -622,13 +622,9 @@ UserRepository repository = factory.getRepository(UserRepository.class);
Configuration example
- <repositories base-package="com.acme.repository">
- <repository id="userRepository" />
-</repositories>
+ <repositories base-package="com.acme.repository" />
-<repositories base-package="com.acme.repository" repository-impl-postfix="FooBar">
- <repository id="userRepository" />
-</repositories>
+<repositories base-package="com.acme.repository" repository-impl-postfix="FooBar" />
The first configuration example will try to lookup a class
@@ -652,35 +648,11 @@ UserRepository repository = factory.getRepository(UserRepository.class);
Manual wiring of custom implementations (I)
- <repositories base-package="com.acme.repository">
- <repository id="userRepository" />
-</repositories>
+ <repositories base-package="com.acme.repository" />
<beans:bean id="userRepositoryImpl" class="…">
<!-- further configuration -->
</beans:bean>
-
- This also works if you use automatic repository lookup without
- defining single <repository /> elements.
-
-
- In case you are not in control of the implementation bean name
- (e.g. if you wrap a generic repository facade around an existing
- repository implementation) you can explicitly tell the
- <repository /> element which bean to use as custom
- implementation by using the repository-impl-ref
- attribute.
-
-
- Manual wiring of custom implementations (II)
-
- <repositories base-package="com.acme.repository">
- <repository id="userRepository" repository-impl-ref="customRepositoryImplementation" />
-</repositories>
-
-<bean id="customRepositoryImplementation" class="…">
- <!-- further configuration -->
-</bean>