From 8d156fb591a79ce80b2c03723aa054b74cbf336b Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Fri, 10 Aug 2012 19:46:24 +0200 Subject: [PATCH] DATACMNS-210 - Removed references to removed single declarations from reference documentation. --- src/docbkx/repositories.xml | 34 +++------------------------------- 1 file changed, 3 insertions(+), 31 deletions(-) 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>