File tree 2 files changed +18
-16
lines changed
src/main/java/org/springframework/data/repository/config
2 files changed +18
-16
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ public Optional<String> getRepositoryBaseClassName() {
161
161
public String getRepositoryFactoryBeanClassName () {
162
162
163
163
return configurationSource .getRepositoryFactoryBeanClassName ()
164
- .orElseGet (() -> extension . getRepositoryFactoryBeanClassName () );
164
+ .orElseGet (extension :: getRepositoryFactoryBeanClassName );
165
165
}
166
166
167
167
/*
@@ -173,6 +173,15 @@ public boolean isLazyInit() {
173
173
return definition .isLazyInit () || !configurationSource .getBootstrapMode ().equals (BootstrapMode .DEFAULT );
174
174
}
175
175
176
+ /*
177
+ * (non-Javadoc)
178
+ * @see org.springframework.data.repository.config.RepositoryConfiguration#isPrimary()
179
+ */
180
+ @ Override
181
+ public boolean isPrimary () {
182
+ return definition .isPrimary ();
183
+ }
184
+
176
185
/*
177
186
* (non-Javadoc)
178
187
* @see org.springframework.data.repository.config.RepositoryConfiguration#getExcludeFilters()
@@ -205,13 +214,4 @@ public ImplementationLookupConfiguration toLookupConfiguration(MetadataReaderFac
205
214
206
215
return toImplementationDetectionConfiguration (factory ).forRepositoryConfiguration (this );
207
216
}
208
-
209
- /*
210
- * (non-Javadoc)
211
- * @see org.springframework.data.repository.config.RepositoryConfiguration#isPrimary()
212
- */
213
- @ Override
214
- public boolean isPrimary () {
215
- return definition .isPrimary ();
216
- }
217
217
}
Original file line number Diff line number Diff line change @@ -106,6 +106,14 @@ public interface RepositoryConfiguration<T extends RepositoryConfigurationSource
106
106
*/
107
107
boolean isLazyInit ();
108
108
109
+ /**
110
+ * Returns whether the repository is the primary one for its type.
111
+ *
112
+ * @return {@literal true} whether the repository is the primary one for its type.
113
+ * @since 2.2.1
114
+ */
115
+ boolean isPrimary ();
116
+
109
117
/**
110
118
* Returns the {@link TypeFilter}s to be used to exclude packages from repository scanning.
111
119
*
@@ -131,10 +139,4 @@ public interface RepositoryConfiguration<T extends RepositoryConfigurationSource
131
139
*/
132
140
ImplementationLookupConfiguration toLookupConfiguration (MetadataReaderFactory factory );
133
141
134
- /**
135
- * Returns whether the repository is the primary one for its type.
136
- *
137
- * @return
138
- */
139
- boolean isPrimary ();
140
142
}
You can’t perform that action at this time.
0 commit comments