Skip to content

Commit 2759473

Browse files
Cleanup
1 parent 7610828 commit 2759473

File tree

2 files changed

+2
-45
lines changed

2 files changed

+2
-45
lines changed

spring-data-eclipse-store/src/main/java/software/xdev/spring/data/eclipse/store/repository/config/EnableEclipseStoreRepositories.java

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@
3535

3636
/**
3737
* Enables the user to enable EclipseStore and configure it to some extent.
38-
* <p>
39-
* Currently no configuration is possible!
40-
* </p>
4138
*/
4239
@SuppressWarnings("unused")
4340
@Target(ElementType.TYPE)
@@ -55,56 +52,38 @@
5552
* Alias for the {@link #basePackages()} attribute. Allows for more concise annotation declarations e.g.:
5653
* {@code @EnableEclipseStoreRepositories("org.my.pkg")} instead of
5754
* {@code @EnableEclipseStoreRepositories(basePackages="org.my.pkg")}.
58-
* <p>
59-
* <b>This currently does nothing! Must get implemented in the future. TODO</b>
60-
* </p>
6155
*/
6256
String[] value() default {};
6357

6458
/**
6559
* Base packages to scan for annotated components. {@link #value()} is an alias for (and mutually exclusive with)
6660
* this attribute. Use {@link #basePackageClasses()} for a type-safe alternative to String-based package names.
67-
* <p>
68-
* <b>This currently does nothing! Must get implemented in the future. TODO</b>
69-
* </p>
7061
*/
7162
String[] basePackages() default {};
7263

7364
/**
7465
* Type-safe alternative to {@link #basePackages()} for specifying the packages to scan for annotated components.
7566
* The package of each class specified will be scanned. Consider creating a special no-op marker class or interface
7667
* in each package that serves no purpose other than being referenced by this attribute.
77-
* <p>
78-
* <b>This currently does nothing! Must get implemented in the future. TODO</b>
79-
* </p>
8068
*/
8169
Class<?>[] basePackageClasses() default {};
8270

8371
/**
8472
* Specifies which types are eligible for component scanning. Narrows the set of candidate components from
8573
* everything in {@link #basePackages()} to everything in the base packages that matches the given filter or
86-
* <p>
87-
* <b>This currently does nothing! Must get implemented in the future. TODO</b>
88-
* </p>
8974
* filters.
9075
*/
9176
Filter[] includeFilters() default {};
9277

9378
/**
9479
* Specifies which types are not eligible for component scanning.
95-
* <p>
96-
* <b>This currently does nothing! Must get implemented in the future. TODO</b>
97-
* </p>
9880
*/
9981
Filter[] excludeFilters() default {};
10082

10183
/**
10284
* Returns the postfix to be used when looking up custom repository implementations. Defaults to {@literal Impl} .
10385
* So for a repository named {@code PersonRepository} the corresponding implementation class will be looked up
10486
* scanning for {@code PersonRepositoryImpl}.
105-
* <p>
106-
* <b>This currently does nothing! Must get implemented in the future. TODO</b>
107-
* </p>
10887
*
10988
* @return {@literal Impl} by default.
11089
*/
@@ -113,9 +92,6 @@
11392
/**
11493
* Configures the location of where to find the Spring Data named queries properties file. Will default to
11594
* {@code META-INFO/eclipse-store-named-queries.properties}.
116-
* <p>
117-
* <b>This currently does nothing! Must get implemented in the future. TODO</b>
118-
* </p>
11995
*
12096
* @return empty {@link String} by default.
12197
*/
@@ -124,9 +100,6 @@
124100
/**
125101
* Returns the key of the {@link QueryLookupStrategy} to be used for lookup queries for query methods. Defaults to
126102
* {@link Key#CREATE_IF_NOT_FOUND}.
127-
* <p>
128-
* <b>This currently does nothing! Must get implemented in the future. TODO</b>
129-
* </p>
130103
*
131104
* @return {@link Key#CREATE_IF_NOT_FOUND} by default.
132105
*/
@@ -135,40 +108,27 @@
135108
/**
136109
* Returns the {@link FactoryBean} class to be used for each repository instance. Defaults to
137110
* {@link EclipseStoreRepositoryFactoryBean}.
138-
* <p>
139-
* <b>This currently does nothing! Must get implemented in the future. TODO</b>
140-
* </p>
141111
*
142112
* @return {@link EclipseStoreRepositoryFactoryBean} by default.
143113
*/
144114
Class<?> repositoryFactoryBeanClass() default EclipseStoreRepositoryFactoryBean.class;
145115

146116
/**
147117
* Configure the repository base class to be used to create repository proxies for this particular configuration.
148-
* <p>
149-
* <b>This currently does nothing! Must get implemented in the future. TODO</b>
150-
* </p>
151118
*
152119
* @return {@link DefaultRepositoryBaseClass} by default.
153-
* @since 1.8
154120
*/
155121
Class<?> repositoryBaseClass() default DefaultRepositoryBaseClass.class;
156122

157123
/**
158124
* Configures the name of the EclipseStoreTemplate bean to be used with the repositories detected.
159-
* <p>
160-
* <b>This currently does nothing! Must get implemented in the future. TODO</b>
161-
* </p>
162125
*
163126
* @return {@literal eclipse-storeTemplate} by default.
164127
*/
165128
String eclipseStoreTemplateRef() default "eclipseStoreTemplate";
166129

167130
/**
168131
* Whether to automatically create indexes for query methods defined in the repository interface.
169-
* <p>
170-
* <b>This currently does nothing! Must get implemented in the future. TODO</b>
171-
* </p>
172132
*
173133
* @return {@literal false} by default.
174134
*/
@@ -177,9 +137,6 @@
177137
/**
178138
* Configures whether nested repository-interfaces (e.g. defined as inner classes) should be discovered by the
179139
* repositories infrastructure.
180-
* <p>
181-
* <b>This currently does nothing! Must get implemented in the future. TODO</b>
182-
* </p>
183140
*
184141
* @return {@literal false} by default.
185142
*/

spring-data-eclipse-store/src/main/java/software/xdev/spring/data/eclipse/store/repository/support/EclipseStoreRepositoryFactoryBean.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,24 @@
1919

2020
import jakarta.annotation.Nonnull;
2121

22-
import org.springframework.beans.factory.annotation.Autowired;
2322
import org.springframework.context.annotation.ComponentScan;
2423
import org.springframework.data.repository.Repository;
2524
import org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport;
2625
import org.springframework.data.repository.core.support.RepositoryFactorySupport;
26+
import org.springframework.stereotype.Component;
2727

2828
import software.xdev.spring.data.eclipse.store.repository.EclipseStoreStorage;
2929

3030

3131
@ComponentScan({
3232
"software.xdev.spring.data.eclipse.store.repository",
3333
"org.eclipse.store.integrations.spring.boot.types"})
34+
@Component
3435
public class EclipseStoreRepositoryFactoryBean<T extends Repository<S, ID>, S, ID extends Serializable>
3536
extends RepositoryFactoryBeanSupport<T, S, ID>
3637
{
3738
private final EclipseStoreStorage storage;
3839

39-
@Autowired
4040
public EclipseStoreRepositoryFactoryBean(
4141
final Class<? extends T> repositoryInterface,
4242
final EclipseStoreStorage storage)

0 commit comments

Comments
 (0)