spring-projects / spring-data-geode

Spring Data support for Apache Geode
Apache License 2.0
50 stars 37 forks source link

Create composed annotations from some of the common, logically related SDG annotations [DATAGEODE-365] #412

Open spring-projects-issues opened 3 years ago

spring-projects-issues commented 3 years ago

John Blum opened DATAGEODE-365 and commented

This development task will add new SDG annotations, such as:

@ManagingLocatorCacheServerApplication

Which will be meta-annotated with:

And expose appropriate/common configuration attributes through aliasing.

Additionally, we will provide other "composed annotations", for example:

@EnablePersistentApplication

Which would be meta-annotated with:


No further details from DATAGEODE-365

spring-projects-issues commented 3 years ago

John Blum commented

This would effectively simplify the following:

@CacheServerApplication
@EnableLocator
@EnableManager(start = true)
@EnableEntityDefinedRegions(basePackageClasses = NonEntityPointer.class)
@EnableGemfireRepositories(basePackageClasses = NonRepositoryPointer.class)
@EnablePdx
class MySpringGeodeApplicationConfiguration { ... }

To:

@ManagingLocatorCacheServerApplication(manager-start = true)
@EnablePersistentApplication(entityBasePackageClasses = ..., repositoryBasePackageClasses = ...)
class MySpringGeodeApplicationConfiguration { ... }
spring-projects-issues commented 3 years ago

John Blum commented

Composed Annotation naming as well as which Composed Annotations we will provide OOTB is subject to feedback