@@ -122,8 +122,9 @@ public void setRepositoryBaseClass(Class<?> repositoryBaseClass) {
122122 * retrieval via the {@code RepositoryMethodContext} class. This is useful if an advised object needs to obtain
123123 * repository information.
124124 * <p>
125- * Default is "false", in order to avoid unnecessary extra interception. This means that no guarantees are provided
126- * that {@code RepositoryMethodContext} access will work consistently within any method of the advised object.
125+ * Default is {@code false}, in order to avoid unnecessary extra interception. This means that no guarantees are
126+ * provided that {@code RepositoryMethodContext} access will work consistently within any method of the advised
127+ * object.
127128 *
128129 * @since 3.4
129130 */
@@ -134,16 +135,20 @@ public void setExposeMetadata(boolean exposeMetadata) {
134135 /**
135136 * Set the {@link QueryLookupStrategy.Key} to be used.
136137 *
137- * @param queryLookupStrategyKey
138+ * @param queryLookupStrategyKey the lookup strategy key to be used.
138139 */
139140 public void setQueryLookupStrategyKey (Key queryLookupStrategyKey ) {
140141 this .queryLookupStrategyKey = queryLookupStrategyKey ;
141142 }
142143
143144 /**
144- * Setter to inject a custom repository implementation.
145+ * Setter to provide a single a custom repository implementation. Single custom implementations are considered first
146+ * when determining target method invocations routing. Single custom implementations were superseded by
147+ * {@link RepositoryFragments} that provide a more flexible way to compose repository implementations from multiple
148+ * fragments consisting of a fragment interface and its implementation.
145149 *
146- * @param customImplementation
150+ * @param customImplementation the single custom implementation.
151+ * @see #setRepositoryFragments(RepositoryFragments)
147152 */
148153 public void setCustomImplementation (Object customImplementation ) {
149154 this .customImplementation = customImplementation ;
@@ -153,7 +158,7 @@ public void setCustomImplementation(Object customImplementation) {
153158 * Setter to inject repository fragments. This method is additive and will add another {@link RepositoryFragments} to
154159 * the already existing list of {@link RepositoryFragmentsFunction}.
155160 *
156- * @param repositoryFragments
161+ * @param repositoryFragments the repository fragments to be used.
157162 */
158163 public void setRepositoryFragments (RepositoryFragments repositoryFragments ) {
159164 setRepositoryFragmentsFunction (RepositoryFragmentsFunction .just (repositoryFragments ));
@@ -163,7 +168,7 @@ public void setRepositoryFragments(RepositoryFragments repositoryFragments) {
163168 * Setter to inject repository fragments. This method is additive and will add another {@link RepositoryFragments} to
164169 * the already existing list of {@link RepositoryFragmentsFunction}.
165170 *
166- * @param fragmentsFunction
171+ * @param fragmentsFunction function to derive additional repository fragments.
167172 * @since 4.0
168173 */
169174 public void setRepositoryFragmentsFunction (RepositoryFragmentsFunction fragmentsFunction ) {
@@ -173,7 +178,7 @@ public void setRepositoryFragmentsFunction(RepositoryFragmentsFunction fragments
173178 /**
174179 * Setter to inject a {@link NamedQueries} instance.
175180 *
176- * @param namedQueries the namedQueries to set
181+ * @param namedQueries the namedQueries to set.
177182 */
178183 public void setNamedQueries (NamedQueries namedQueries ) {
179184 this .namedQueries = namedQueries ;
@@ -183,7 +188,7 @@ public void setNamedQueries(NamedQueries namedQueries) {
183188 * Configures the {@link MappingContext} to be used to lookup {@link PersistentEntity} instances for
184189 * {@link #getPersistentEntity()}.
185190 *
186- * @param mappingContext
191+ * @param mappingContext mapping context to be used.
187192 */
188193 protected void setMappingContext (MappingContext <?, ?> mappingContext ) {
189194 this .mappingContext = mappingContext ;
@@ -301,14 +306,14 @@ public List<QueryMethod> getQueryMethods() {
301306 return repositoryInterface ;
302307 }
303308
304- RepositoryFactorySupport getRequiredFactory () {
309+ private RepositoryFactorySupport getRequiredFactory () {
305310
306311 Assert .state (factory != null , "RepositoryFactory is not initialized" );
307312
308313 return factory ;
309314 }
310315
311- RepositoryMetadata getRequiredRepositoryMetadata () {
316+ private RepositoryMetadata getRequiredRepositoryMetadata () {
312317
313318 Assert .state (repositoryMetadata != null , "RepositoryMetadata is not initialized" );
314319
0 commit comments