When I added an includeFilter
to @EnableEntityDefinedRegion
, it still scanned the whole entity package and created all Region beans. How do I scan the specific Region class? For example, only "Address" Region.
package org.test.entity
@Getter
@Setter
@Region("Address")
public class GfAddress implements Serializable
package org.test.entity
@Getter
@Setter
@Region("CreditCard")
public class GfCreditCard implements Serializable
package org.test.package
public interface IAddressRepository extends GemfireRepository<GfAddress, String>
package org.test.package
public interface ICreditCardRepository extends GemfireRepository<GfCreditCard , String>
@Service
@ClientCacheApplication
@EnableGemfireRepositories(basePackages = IAddressRepository.class, includeFilters = @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, classes=AddressRepository.class))
@EnableEntityDefinedRegion(basePackages = GfAddress.class, includeFilters = @ComponentScan.Filter(type = FilterType.REGEX, pattern="GfAddress*"))
public class AddressDataAccess
When I print all the beans that are loaded, I found out that the following beans are created.
- Address
- CreditCard
- IAddressRepository
- AddressDataAccess
Version
- GemFire : 9.8.6
- spring-data-gemfire : 2.1.0
- Spring Boot : 2.1.0