DATACMNS-210 - Removed references to removed single <repository /> declarations from reference documentation.
This commit is contained in:
@@ -622,13 +622,9 @@ UserRepository repository = factory.getRepository(UserRepository.class);</progra
|
||||
<example>
|
||||
<title>Configuration example</title>
|
||||
|
||||
<para><programlisting language="xml"><repositories base-package="com.acme.repository">
|
||||
<repository id="userRepository" />
|
||||
</repositories>
|
||||
<para><programlisting language="xml"><repositories base-package="com.acme.repository" />
|
||||
|
||||
<repositories base-package="com.acme.repository" repository-impl-postfix="FooBar">
|
||||
<repository id="userRepository" />
|
||||
</repositories></programlisting></para>
|
||||
<repositories base-package="com.acme.repository" repository-impl-postfix="FooBar" /></programlisting></para>
|
||||
</example>
|
||||
|
||||
<para>The first configuration example will try to lookup a class
|
||||
@@ -652,35 +648,11 @@ UserRepository repository = factory.getRepository(UserRepository.class);</progra
|
||||
<example>
|
||||
<title>Manual wiring of custom implementations (I)</title>
|
||||
|
||||
<programlisting language="xml"><repositories base-package="com.acme.repository">
|
||||
<repository id="userRepository" />
|
||||
</repositories>
|
||||
<programlisting language="xml"><repositories base-package="com.acme.repository" />
|
||||
|
||||
<beans:bean id="userRepositoryImpl" class="…">
|
||||
<!-- further configuration -->
|
||||
</beans:bean></programlisting>
|
||||
|
||||
<para>This also works if you use automatic repository lookup without
|
||||
defining single <code><repository /></code> elements.</para>
|
||||
</example>
|
||||
|
||||
<para>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
|
||||
<code><repository /></code> element which bean to use as custom
|
||||
implementation by using the <code>repository-impl-ref</code>
|
||||
attribute.</para>
|
||||
|
||||
<example>
|
||||
<title>Manual wiring of custom implementations (II)</title>
|
||||
|
||||
<para><programlisting language="xml"><repositories base-package="com.acme.repository">
|
||||
<repository id="userRepository" repository-impl-ref="customRepositoryImplementation" />
|
||||
</repositories>
|
||||
|
||||
<bean id="customRepositoryImplementation" class="…">
|
||||
<!-- further configuration -->
|
||||
</bean></programlisting></para>
|
||||
</example>
|
||||
</simplesect>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user