Commit Graph

21 Commits

Author SHA1 Message Date
John Blum
c33d75db27 Add a concrete o.s.g.cache.RepositoryCacheWriter class, which implements org.apache.geode.cache.CacheWriter and uses (delegates to) a Spring Data CrudRepository. 2019-05-09 19:51:11 -07:00
John Blum
a1300c5fc5 Add abstract base class supporting the development of Spring Data Repository, Apache Geode CacheLoader/CacheWriter implementations. 2019-05-09 19:49:29 -07:00
John Blum
75f8aed494 Add o.s.g.cache.support.CacheWriterSupport interface extending org.apache.geode.cache.CacheWriter to facilitate the implementations of application CacheWriters.
The CacheWriterSupport compliments the o.s.g.cache.support.CacheLoaderSupport interface.
2019-05-09 19:48:15 -07:00
John Blum
b9578f679d Add abstract utility class for working with java.util.function.Functions. 2019-05-09 19:45:50 -07:00
John Blum
cdcbbca6a4 Encapsulate configuration of Apache Geode/Pivotal GemFire (PCC) Security (Auth) using an enabling Annotation with the CacheFactory API. 2019-05-06 16:48:23 -07:00
John Blum
fa421c6da4 Refactor SecurityManagerProxy class.
Remove init(:Properties) method call from constructor.

Implement the o.s.beans.factory.BeanFactoryAware interface.

Override the locateBeanFactory() method.

Switch the test configuration to use the new @EnableSecurityManagerProxy annotation.
2019-05-06 16:48:23 -07:00
John Blum
4f7383f71b Encapsulate configuration of Apache Geode/Pivotal GemFire (PCC) Security (Auth) using an enabling Annotation and security-manager property with proxying. 2019-05-06 16:48:23 -07:00
John Blum
473e31af30 Remove unnecessary use of java.util.Optional. 2019-04-29 19:37:14 -07:00
John Blum
332b228589 Edit Javadoc.
Correct invalid '@literl' and '@lin' Javadoc tags.
2019-04-29 16:19:04 -07:00
John Blum
a366c7abd5 Add findMethod(:Class, :String, :Object[]):Optional<Method> and supporting private Predicate creation methods.
findMethod(..) matches a Method based on the Object's Class type, the Method name and whether the arguments passed can be used to invoek a (potentially) overloaded method by the same name.

Add a resolveInvocationTarget(:Object, :Method) to resolve the target of the Method invocation.

The target of the Method invocation is determined by whether the Method is static; if the Method is static, then the resolved target is null, otherwise it is the target Object.
2019-04-29 16:13:00 -07:00
John Blum
8da5755ed8 Update copyright to 2019.
Resolves gh-19.
2019-03-21 18:07:02 -07:00
Toshiaki Maki
9a27b397fc Fix placeholders in log statements.
The log statement incorrectly used String.format(..) placecholders (e.g. %s) rather than SLF4J placeholders (e.g. {}).

Resolves gh-24.
2019-03-11 11:17:03 -07:00
John Blum
5a70c32261 Format source code. 2019-01-29 15:07:26 -08:00
John Blum
6e8cca1425 Format source code. 2019-01-29 10:28:27 -08:00
John Blum
60d23c9b8f Apply Java 8 constructs and features (e.g. Method References). 2019-01-28 09:41:27 -08:00
John Blum
fe54953e00 Add logic to ignore member name if 'spring.data.gemfire.name' or 'spring.data.gemfire.cache.name' properties are set.
Add logic to ignore member name if the 'spring.application.name' property is set.

Add integration tests asserting that @UseMemberName overrides the name attribute specified in the caching annotations (e.g. @ClientCacheApplication#name() or @PeerCacheApplication#name()).
2018-10-02 16:13:24 -07:00
John Blum
b6e47a6578 Add test cases for getting the value of an Object Field. 2018-09-20 00:07:13 -07:00
John Blum
f1c9e3ea3c Add get(:Object: fieldName:String) and get(:Object, :Field) methods to ObjectUtils.
Add overloaded doOperationSafely(:ExceptionThrowingOperation, :Function<Throwable, T>) method.
2018-09-19 13:14:27 -07:00
John Blum
2bd1afdb9e Add utiliy method to invoke a method on an object. 2018-08-29 10:06:33 -07:00
John Blum
d98c8d1334 Add annotation configuration support to configure Apache Geode/Pivotal GemFire Locators ('locators') used in P2P topologies and remote Locators ('remote-locators') used in WAN topologies. 2018-06-21 17:51:42 -07:00
John Blum
330dc7fec3 Rename modules.
Rename geode-spring-boot to spring-geode.

Rename geode-spring-boot-autoconfigure to spring-geode-autoconfigure.

Rename geode-spring-boot-starter to spring-geode-starter.

Rename gemfire-spring-boot-starter to spring-gemfire-starter.

Resolves GitHub Issue #6.
2018-06-19 18:35:09 -07:00