John Blum
0ff6784d97
Edit changelog and add 1.3.9.RELEASE notes.
2021-02-22 18:58:41 -08:00
John Blum
8c28ab61a2
Edit changelog and add 1.3.8.RELEASE notes.
2021-01-19 16:55:37 -08:00
John Blum
2ba999119e
Edit changelog and include 1.2.13.RELEASE notes.
2021-01-19 16:52:35 -08:00
John Blum
081dbd5c5d
Edit changelog and add 1.3.7.RELEASE notes.
2020-12-11 00:34:38 -08:00
John Blum
9d584cac42
Edit changelog and include 1.2.12.RELEASE notes.
2020-12-11 00:17:40 -08:00
John Blum
b8088cfea0
Edit changelog and add 1.3.6.RELEASE notes.
2020-11-19 13:04:14 -08:00
John Blum
b989697f44
Edit changelog and add 1.3.5.RELEASE notes.
2020-11-10 11:01:42 -08:00
John Blum
986deec90b
Edit changelog and add 1.2.11.RELEASE notes.
2020-11-10 10:52:31 -08:00
John Blum
6d04479670
Edit changelog and add 1.1.11.RELEASE notes.
2020-11-10 10:50:56 -08:00
John Blum
6cde223a06
Change JetBrains @NotNull annotation to Spring Framework's @NonNull annotation.
2020-11-10 10:36:47 -08:00
John Blum
bf7e21e866
Fix test failure after Spring Boot upgraded from Jackson 2.11.2 to 2.11.3, which introduced an API (contractual) breaking change.
...
Seems Jackson introduced an API breaking change that now requires a PolymorphicTypeValidator when configuring and activating the default typing as a propery on the ObjectMapper.
2020-10-28 15:25:40 -07:00
John Blum
3f833d9bbe
Edit changelog and add 1.3.4.RELEASE notes.
2020-09-17 18:35:28 -07:00
John Blum
00abd0ef4f
Edit changelog and include 1.2.10.RELEASE notes.
2020-09-17 18:25:26 -07:00
John Blum
d5086afc87
Edit changelog and include 1.1.10.RELEASE notes.
2020-09-17 18:24:27 -07:00
John Blum
8154e85d5a
Remove unnecessary use of java.util.Optional.
2020-09-17 18:03:32 -07:00
John Blum
8fb0c2112b
Replace references to 'Pivotal GemFire' with 'VMware Tanzu GemFire'.
...
Fix compiler syntax errors in code snippets.
Introduce documentation variables where applicable.
Format source code.
Optimize imports.
2020-09-17 18:03:32 -07:00
John Blum
01272aa6f3
Annotate newRepositoryCacheWriter() with @SuppressWarnings('rawtypes').
2020-09-17 15:56:41 -07:00
John Blum
ffac909358
Annotate newRepositoryCacheLoader() with @SuppressWarnings('rawtypes').
2020-09-17 15:56:34 -07:00
John Blum
b0f79b5078
Optimize imports.
...
Remove unnecessary @SuppressWarnings(..) annotation declarations.
2020-09-17 15:56:28 -07:00
John Blum
ecf2994a01
Edit changelog and add 1.3.3.RELEASE notes.
2020-08-20 15:58:17 -07:00
John Blum
1f9fae3b85
Edit changelog and add 1.3.2.RELEASE notes.
2020-08-07 16:48:50 -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
0b1fabec7c
Edit changelog and add 1.3.1.RELEASE notes.
2020-07-27 01:11:05 -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
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
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
1976a5f3e6
Refactor FileResourceWriter to throw a ResourceWriteException on a IOException.
...
Resolves gh-92.
2020-07-20 21:51:38 -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
John Blum
4bf62d9bf0
Refactor ResourceCapableCacheDataImporterExporter class with Open/Closed Principles.
...
Change CacheResourceResolver, ExportResourceResolver and ImportResourceResolver interfaces into @FunctionalInterfaces; provide default implementation for the resolve(location:String):Optional<Resource> method.
Change access modifier on AbstractExportResourceResolver and AbstractImportResourceResolver from protected to public.
Resolves gh-92.
2020-07-20 13:10:20 -07:00
John Blum
e49ffa3d0f
Add ResourceResolver implementation that resolves to a single (i.e. 'Singleton') Resource.
...
Resolve gh-92.
2020-07-20 12:41:34 -07:00
John Blum
a605bd9f40
Add a general ResourceDataAccessException, RuntimeException class indicating problems while accessing the data from a target Resource.
...
Add ResourceReadException extending ResourceDataAccessException to indicate problems while reading from a target Resource.
Add ResourceWriteException extending ResourceDataAccessException to indicate problems while writing to a target Resource.
Resolves gh-92.
2020-07-20 12:03:01 -07:00
John Blum
58a4992905
Move all Resource handling logic and class member constants to the ResourceCapableCacheDataImporterExporter subclass.
...
Edit Javadoc.
Change access modifier on getApplicationContext() from public to protected.
Resolves gh-92.
2020-07-16 14:48:01 -07:00
John Blum
681fd81ad2
Define new, abstract ResourceCapableCacheDataImporterExporter capable of handling dynamic Resources.
...
The primary concerns involve resolving Resources for import/export along with reading from and writing to any Resource using the Spring Resource abstraction.
Resolves gh-92.
2020-07-16 14:43:32 -07:00
John Blum
9a77049a76
Add new SpEL PropertyAccessor implementation to handle Spring Environment and EnvironmentCapable objects in safe way.
2020-07-10 14:59:57 -07:00
John Blum
a1ab9226eb
Add Adapter class for a Spring Environment to use as a Map.
2020-07-10 14:59:57 -07:00