Commit Graph

1305 Commits

Author SHA1 Message Date
John Blum
a64ec4e5bb Add additional documentation on matching client/server versions when using PCC in PCF. 2020-08-07 16:28:05 -07:00
John Blum
8b847d6c40 Add artifact version documentation attributes for Apache Geode, Pivotal/VMware GemFire and Pivotal/VMware Cloud Cache. 2020-08-07 16:07:02 -07:00
John Blum
46fa881fad Add version property for Pivotal Cloud Cache. 2020-08-07 16:03:53 -07:00
John Blum
688c609769 Change Getting Started Sample artifact version to 1.3.0.BUILD-SNAPSHOT matching the project version. 2020-08-07 16:02:48 -07:00
John Blum
59d7918019 Fix spelling. 2020-08-07 16:01:20 -07:00
John Blum
5f9a41eca4 Edit README to refer to 1.2.9.RELEASE and 1.2.10.BUILD-SNAPSHOT in 1.2.x release line. 2020-07-27 22:47:27 -07:00
John Blum
8d166f3d59 Edit README to refer to 1.1.9.RELEASE and 1.1.10.BUILD-SNAPSHOT in 1.1.x release line. 2020-07-27 22:46:44 -07:00
John Blum
ce0a9aacbd Edit changelog and include 1.2.9.RELEASE notes. 2020-07-27 22:45:51 -07:00
John Blum
b413070921 Edit changelog and include 1.1.9.RELEASE notes. 2020-07-27 22:45:00 -07:00
John Blum
39b35795e5 Edit README to refer to the 1.3.1.RELEASE and 1.3.2.BUILD-SNAPSHOT versions. 2020-07-27 02:05:18 -07:00
John Blum
6343546429 Prepare next development iteration.
Upgrade to VMware GemFire 9.10.2.

Upgrade to Spring Framework 5.2.8.RELEASE.

Upgrade to Spring Boot 2.3.2.RELEASE.

Upgrade to Spring Data for Apache Geode & VMware GemFire 2.3.2.RELEASE.

Upgrade to Spring Data Release Train Neumann-SR2.

Set version to 1.3.2.BUILD-SNAPSHOT.
2020-07-27 01:40:10 -07:00
John Blum
0da83265b9 Release 1.3.1.RELEASE. 2020-07-27 01:20:36 -07:00
John Blum
0b1fabec7c Edit changelog and add 1.3.1.RELEASE notes. 2020-07-27 01:11:05 -07:00
John Blum
36fac32d9c Upgrade Sample Guides, Maven POM build files to Spring Boot 2.3.1.RELEASE.
Sets SBDG version to 1.3.1.BUILD-SNAPSHOT.
2020-07-27 01:11:05 -07:00
John Blum
20fed2b4c0 Adapt to API changes in the STDG 0.0.17.RELEASE.
Specifically, change '@EnableGemFireMockObjects' annotation, 'destroyOnEvent' attribute references to 'destoryOnEvents'.
2020-07-27 00:49:33 -07:00
John Blum
653eefad9f Upgrade to Gradle 6.5.1. 2020-07-27 00:37:09 -07:00
John Blum
79da4b85bc Upgrade to Spring Build Conventions Gradle Plugin 0.0.33.RELEASE. 2020-07-27 00:36:34 -07:00
John Blum
a21224f2a4 Upgrade to Spring Test for Apache Geode & VMware GemFire 0.0.17.RELEASE. 2020-07-27 00:31:39 -07:00
John Blum
ebb082fca8 Upgrade to Mockito 3.4.4. 2020-07-27 00:29:46 -07:00
John Blum
1dc8c4d062 Upgrade to Byte Buddy 1.10.13. 2020-07-27 00:27:47 -07:00
John Blum
dc2d6e4056 Edit 'Apache Geode API Extensions' chapter and include documentation on the new ObjectPdxInstanceAdapter class. 2020-07-26 17:40:03 -07:00
John Blum
4ddf64fc14 Edit 'Apache Geode API Extensions' chapter.
Add documentation for the PdxInstanceWrapper.getIdentifier() method.
2020-07-26 16:22:22 -07:00
John Blum
f06cb1a470 Edit 'Using Data' chapter to include new content on Import/Export API Extensions.
Resolves gh-92.
2020-07-24 17:16:47 -07:00
John Blum
adbbda54f4 Edit the 'Working with Data' chapter.
Change title to 'Using Data'.

Revise the reference documentation to be more concise.
2020-07-24 12:05:39 -07:00
John Blum
20b8c2d172 Cleanup all unsafe and unchecked compiler warnings. 2020-07-23 14:57:01 -07:00
John Blum
ba24c50ba2 Cleanup uses and/or overrides of Apache Geode, Spring and Test Framework (e.g. Mockito) deprecated APIs. 2020-07-23 14:57:09 -07:00
John Blum
5ca11cbc44 Declare 'com.google.code.findbugs:jsr305' as a compileOnly/testCompileOnly depedency to cleanup Gradle build warnings.
Without this dependency the Gradle build logs warnings about:

> Task :spring-geode-autoconfigure:compileTestJava
warning: unknown enum constant When.MAYBE
  reason: class file for javax.annotation.meta.When not found
...
2020-07-23 14:57:01 -07:00
John Blum
6fc18bc449 Extend STDG's o.s.d.g.tests.integration.IntegrationTestsSupport base class. 2020-07-23 13:42:51 -07:00
John Blum
760b381941 Switch the 'org.springframework.boot:spring-boot-starter-web' dependency from 'testRuntime' to 'testCompile'. 2020-07-23 12:25:14 -07:00
John Blum
0cd2f4df1b Add Integration Tests testing the (auto) configuration of custom import and export Resources via HTTP to a REST service.
Resolves gh-92.
2020-07-23 12:25:14 -07:00
John Blum
73af4f0ccd Add postProcess(:Resource) method invocation to Resource resolution for all loaded Resources.
Resolves gh-92.
2020-07-23 12:25:15 -07:00
John Blum
9eb6915c87 Remove ResourceNotFoundException catch block and handler logic from the overridden doImportInto(:Region) method in JsonCacheDataImporterExporter factory method.
Resolves gh-92.
2020-07-22 17:11:56 -07:00
John Blum
61ec8ccb28 Refactor ResourceCapableCacheDataImporterExporter to not fail on missing Resources for import and rather log a warning.
It is valid that a Resource may not exist for a Region on import since the user may not want to import any data into the Region.

Resolves gh-92.
2020-07-22 16:59:47 -07:00
John Blum
f23675fec5 Refactor ResourceCapableCacheDataImporterExporter to use ObjectAwareUtils to initialize the import & export ResourceResolvers with the ApplicationContext, Environment and ResourceLoader managed objects if present.
Resolves gh-92.
2020-07-22 12:43:16 -07:00
John Blum
faaa218f51 Add ObjectAwareUtils abstract utility class for perforing functions on Spring Aware Objects.
Spring Aware Objects currently handled by ObjectAwareUtils includes, but is not limited to: ApplicationContextAware, ApplicationEventPublisherAware, BeanClassLoaderAware, BeanFactoryAware, BeanNameAware, EnvironmentAware and ResourceLoaderAware.
2020-07-22 12:42:38 -07:00
John Blum
7a13850ef0 Refactor ResourceCapableCacheDataImporterExporter import & export cache ResourceResolver base classes to be static.
Change AbstractCacheResourceResolver class to be ApplicationContextAware and EnvironmentAware.

Add getLogger() method to the AbstractCacheResourceResolver class.

Add Resource description in Logger message logged by onMissingResource(..) on export.

Annotate AbstractExportResourceResolver.onMisingResource(..) method signature with Spring Framework @NonNull and @Nullable annotations.

Separate logic from afterPropertiesSet() initializing the ApplicationContext, Environment and ResourceLoader objects on aware import/export ResourceResolvers into init methods.

Edit Javadoc.

Resolves gh-92.
2020-07-21 22:29:52 -07:00
John Blum
0cd771b236 Move filter on isImportProfilesActive(:Environment) before Region Predicate test in importInto(:Region).
Move the isImportProfilesActive(:Environment) method before the importInto(:Region) method.

Annotate toSet(..) class method signature with Spring Framework @NonNull and @Nullable annotations.

Edit Javadoc.

Resolves gh-92.
2020-07-21 22:09:49 -07:00
John Blum
bfb26e5980 Refactor ResourceLoaderResourceResolver to describe the Resource onMissingResource(..) when Resource is not null.
Remove 'final' modifier from setResourceLoader(:ResourceLoader).

Edit Javadoc.

Resolves gh-92.
2020-07-21 22:09:25 -07:00
John Blum
a439b8a81d Refactor the ResourceResolver interface, require(..) method to throw a ResourceNotFoundException.
Edit Javadoc.

Resolves gh-92.
2020-07-21 20:33:50 -07:00
John Blum
4a7de7f565 Rearrange the Management REST API property configuration to set properties alphabetically for readability. 2020-07-21 12:00:35 -07:00
John Blum
1976a5f3e6 Refactor FileResourceWriter to throw a ResourceWriteException on a IOException.
Resolves gh-92.
2020-07-20 21:51:38 -07:00
John Blum
84f0af50e4 Adapt cache data import/export auto-configuration to the new ResolverResolver, ResourceReader and ResourceWriter API.
Resolves gh-92.
2020-07-20 20:58:00 -07:00
John Blum
e60231e308 Refactor LifecycleAwareCacheDataImporterExporter to configure the ExportResourceResolver, ImportResourceResolver, ResourceLoader, ResourceReader and ResourceWriter on the decorated, wrapped CacheDataImporterExporter if the importer/exporter is ResourceLoaderAware and Resource capable.
Resolves gh-92.
2020-07-20 20:56:42 -07:00
John Blum
9aa818f398 Refactor ResourceCapableCacheDataImporterExporter to use setter injection instead of field injection.
Fix bug with FileSystemExportResourceResolve to append the file system path with the file system path separator.

Resolves gh-92.
2020-07-20 18:33:02 -07:00
John Blum
9c1f3354ac Edit Javadoc. 2020-07-20 18:25:05 -07:00
John Blum
d38442af2a Refactor AbstractResourceWriter to throw a ResourcewWriteException on an IOException during doWrite(..).
Additionally, add a preProcess(:WritableResource) to process the WritableResource before data for the target Resource is written.

Resolves gh-92.
2020-07-20 18:25:05 -07:00
John Blum
94b16dafbe Refactor AbstractResourceReader to throw a ResourceReadException on an IOException during doRead(..).
Additionally, add a preProcess(:Resource) method to process the Resource before data from the target Resource is read.

Resolves gh-92.
2020-07-20 18:25:05 -07:00
John Blum
3ed0145ea7 Refactor ResourceUtils and rename getWritableResource(:Resource) as asStrictlyWritableResource(:Resource).
Add additional, lenient asWritableResource(:Resource) method return an Optional<WritableResource> if the given Resource is not an instance of WritableResource.

Resolves gh-92.
2020-07-20 17:43:41 -07:00
John Blum
290dbc3e48 Fix Javadoc. 2020-07-20 13:38:53 -07:00
John Blum
2d1cc28188 Refactor JsonCacheDataImporterExporter to extend ResourceCapableCacheDataImporterExporter.
Change doImportInto(:Region) logic to make use of the ImportResourceResolver and ResourceReader on import.

Change doExportFrom(:Region) logic to make use of the ExportResourceResolver and ResourceWriter on export.

Resolves gh-92.
2020-07-20 13:25:26 -07:00