Commit Graph

1961 Commits

Author SHA1 Message Date
John Blum
7d80bfec9f Improve intelligence around @EnableClusterAware to be Environment-aware.
One example is when running your Spring Boot app in Pivotal Platfom using Pivotal Cloud Cache (PCC), which is secure by default and requires HTTPS in addition to Auth.

Resolves gh-56.
2019-09-20 13:26:57 -07:00
John Blum
0094fd6ea4 Add Environment/System property to control ClusterAwareCondition matching.
Provide static method ClusterAwareConfiguration.ClusterAwareCondition.isAvailable() to assess whether the cluster was available in application components and act accordingly.

Resolves gh-52.
2019-09-20 13:23:43 -07:00
John Blum
75a43ed393 Edit documentation on GemfireTemplate auto-configuration and add warning about Caching-defined Regions.
Resolves gh-55.
2019-09-20 01:44:27 -07:00
John Blum
af35414d07 Improves auto-confiuguration of GemfireTemplates for cache Regions to minimize issues when auto-wiring templates into application components.
Resolves gh-55.
2019-09-20 01:44:18 -07:00
John Blum
6b4827c9b6 Add TypelessAnnotationConfigSupport class extending SDG's o.s.d.g.config.annotation.support.AbstractAnnotationConfigSupport class, which is not based on any configuration-based annotation, but provides a means to utilize the helper methods. 2019-09-20 01:42:40 -07:00
John Blum
0639042893 Edit chapters on Auto-configuration & Declarative Configuration. 2019-09-14 18:54:33 -07:00
John Blum
432bd479d2 Optimize imports. 2019-09-12 17:45:09 -07:00
John Blum
9766fad249 Move HttpBasicAuthenticationSecurityConfiguration class to org.springframework.geode.boot.autoconfigure.support. 2019-09-12 17:44:17 -07:00
John Blum
ff3ddaf586 Adds support to properly clean up and 'reset' the ClusterAwareConfiguration.ClusterAwareCondition state on ApplicationContext closed events. 2019-09-12 17:40:08 -07:00
John Blum
bf9bcb866e Fix CI build test failures related to a dirty ApplicationContext and Condition state when assessing the availibility of a cluster in a required client/server topology. 2019-09-12 17:17:47 -07:00
John Blum
03225d81ca Enable GemFire Mock Objects. 2019-09-12 17:04:28 -07:00
John Blum
1a5d4d079a Edit Javadoc; Optimize imports; Fix failing tests in CI environment. 2019-09-12 17:03:45 -07:00
John Blum
c3f19df920 Move ClusterAwareConfiguration.ClusterAwareCondition.reset() to @AfterClass tear down method. 2019-09-12 16:57:48 -07:00
John Blum
9374bf4803 Import EnableSubscriptionConfiguration Spring @Configuration class. 2019-09-12 16:56:09 -07:00
John Blum
edb12fc523 Add shared Spring @Configuration class for enabling (client/Pool) subscriptions.
This class will be used by both the ContinuousQueryAutoConfiguration class and the SpringSessionAutoConfiguration class.
2019-09-12 16:54:55 -07:00
John Blum
8e30b4ddd2 Improve CQ Auto-configuration by assessing the availability of a server or cluster first before enabling and auto-configuring CQ functionality.
This added capabilities relies on the new ClusterAwareConditions.

Resolves gh-53.
2019-09-12 14:28:59 -07:00
John Blum
1cf8986496 Edit appendix. 2019-09-12 01:12:27 -07:00
John Blum
196be60838 Edit the chapters on Auto-configuration and Declarative Configuration. 2019-09-12 01:12:27 -07:00
John Blum
381f6aa572 Edit the index to include the chapters on Auto-configuration and Declarative Configuration. 2019-09-12 01:12:27 -07:00
John Blum
af95b61eaa Add chapter on Declarative Configuration. 2019-09-12 01:12:27 -07:00
John Blum
2d9c4410a0 Add chapter on Auto-configuration. 2019-09-12 01:12:27 -07:00
John Blum
554331a356 Add @EnableClusterDefinedRegions, @EnableGatewayReceiver and @EnableGatewaySender(s) annotations to the list of Annotations provided by SDG in the 'Explicit Configuration' section. 2019-09-12 01:12:27 -07:00
John Blum
d13d34e6d9 Add section title for the complete set of SBDG Auto-configuration classes.
Correct spelling in 'SpringSessionPropertiesAutoConfiguration' class name.
2019-09-12 01:09:38 -07:00
John Blum
43ec48a5e4 Rename configuration.adoc to configuration-externalized.adoc to reflect the title. 2019-09-12 01:09:38 -07:00
John Blum
ed3eea4c1d Edit chapter on 'Externalized Configuration'. 2019-09-12 01:09:38 -07:00
John Blum
7992b3e893 Edit Javadoc. 2019-09-12 01:09:38 -07:00
John Blum
25cf033095 Format source code; Optimize imports. 2019-09-12 01:09:38 -07:00
John Blum
a616bc52e7 Correct 'beanName' variable spelling in Lambda expression of the clientCacheMemberNameConfigurer and peerCacheMemberNameConfigurer bean definitions.
Optimize imports.
2019-09-12 01:09:38 -07:00
John Blum
a8e29f7065 Provide ability to reset Cluster-Aware Configuration Condition state. 2019-09-12 01:09:38 -07:00
John Blum
c1d7424de1 Add @EnableClusterAware annotation configuration support allowing developers to seamlessly switch between local and client/server development environments.
Resolves gh-52.
2019-09-12 01:09:38 -07:00
John Blum
9bb6f6b0ea Fix documentation anchor reference. 2019-09-12 01:08:28 -07:00
John Blum
2fb96d0644 Update README.adoc to refer to the 1.2.0.M2 version in the reference documentation. 2019-09-12 01:05:54 -07:00
John Blum
7d8ef43f06 Prepare next development iteration.
Set Spring Framework version to 5.2.0.BUILD-SNAPSHOT.

Set Spring Boot version to 2.2.0.BUILD-SNAPSHOT.

Set Spring Data for Apache Geode & Pivotal GemFire version to 2.2.0.BUILD-SNAPSHOT.

Set Spring Data Release Train version to Moore-BUILD-SNAPSHOT.

Set Spring Session BOM version to Corn-BUILD-SNAPSHOT.

Set Spring Session for Apache Geode & Pivotal GemFire version to 2.2.0.BUILD-SNAPSHOT.

Set version to 1.2.0.BUILD-SNAPSHOT.
2019-09-12 00:57:01 -07:00
John Blum
1daa95be7b Release 1.2.0.M2. 2019-09-12 00:40:41 -07:00
John Blum
43ce66bac4 Prepare the 1.2.0.M2 release.
Upgrade to Spring Framework 5.2.0.RC2.

Upgrade to Spring Boot 2.2.0.M6.

Upgrade to Spring Data for Apache Geode & Pivotal GemFire 2.2.0.RC3.

Upgrade to Spring Data Release Train Moore-RC3.

Upgrade to Spring Session BOM Corn-M4.

Upgrade to Spring Session for Apache Geode & Pivotal GemFire 2.2.0.M4.

Upgrade to Spring Test for Apache Geode & Pivotal GemFire 0.0.8.RELEASE.
2019-09-12 00:28:23 -07:00
John Blum
0bd1eab2a9 Update changelog with 1.2.0.M2 release notes. 2019-09-12 00:26:15 -07:00
John Blum
119dda0459 Update README.adoc with the 1.1.1.RELEASE and 1.1.2.BUILD-SNAPSHOT versions in the reference documentation.
Edit the 'Examples' section for grammatical errors.
2019-09-11 22:59:22 -07:00
John Blum
18c4195cad Update changelog with 1.1.1.RELEASE notes. 2019-09-11 22:58:00 -07:00
John Blum
9732d5e7f8 Remove the 'javax.cache:cache-api runtime dependency from the starters.
The JSR-107, JCache API is no longer a required runtime dependency for Spring Data for Apache Geode & Pivotal GemFire as of SDG Moore-RC3/2.2.0.RC3 release.

See https://jira.spring.io/browse/DATAGEODE-225 & https://jira.spring.io/browse/SGF-808 for more details.

Resolves gh-45.
2019-09-10 22:10:10 -07:00
John Blum
980ad35a6f Change Apache Geode documentation version to 1.9.
Change Pivotal GemFire documentation version to 9.8.
2019-09-10 21:50:50 -07:00
John Blum
83c036a42c Edit the 'Security' and 'Pivotal CloudFoundry' chapters regarding client authentication. 2019-09-10 21:47:18 -07:00
John Blum
4b06829671 Fix URL reference to Pivotal Cloud Cache documentation. 2019-09-10 21:45:34 -07:00
John Blum
9afd854290 Add Gradle extension property for overriding the Spring Session BOM version. 2019-09-10 20:45:15 -07:00
John Blum
0dc82ea588 Add documentation on running a Spring Boot application in PCF using PCC as a specific, assigned user.
Resolves gh-44.
2019-09-10 20:36:36 -07:00
John Blum
31c918ffbc Improve Client Security Auto-configuration to allow users to configure the runtime user of their Spring Boot applications running in Pivotal CloudFoundray (PCF) when using Pivotal Cloud Cache (PCC).
Note: configuring the runtime user of a Spring Boot app outside of CloudFoundry is already supported.  Simply set the 'spring.data.gemfire.security.username' and 'spring.data.gemfire.security.password' properties.

Resolves gh-44.
2019-09-10 20:36:36 -07:00
John Blum
69250d1e30 Add capability to find an optional user by name.
Resolves gh-44.
2019-09-10 12:29:32 -07:00
John Blum
3c0a0daa32 Remove unnecessary exclude on ContinuousQueryAutoConfiguration class. 2019-09-10 01:30:03 -07:00
John Blum
bc6e423ed0 Disable SSL auto-configuration for all Spring Geode Sample tests. 2019-09-10 01:12:35 -07:00
John Blum
3e417a9ce8 Refactor EnableSecurityCondition to extend AllNestedConditions.
Wrap existing Security conditions (e.g. Cloud Platform, spring.data.gemfire.security properties) in a SecurityTriggersCondition class extending AnyNestedCondition.

Declare nested Condition on the 'spring.boot.data.gemfire.security.auth.environment.post-processor.enabled' property fixing bug with the non-guarded application of the @EnableSecurity annotation.

Edit Javadoc.

Optimize imports.
2019-09-10 01:01:36 -07:00
John Blum
f3bdbedfd7 Refactor EnableSslCondition to extend AllNestedConditions.
Wrap existing SSL conditions (e.g. trusted.keystore, spring.data.gemfire.security.ssl properties) in a SslTriggersCondition class extending AnyNestedCondition.

Declare nested Condition on the 'spring.boot.data.gemfire.security.ssl.environment.post-processor.enabled.property' fixing bug with the non-guarded application of the @EnableSsl annotation.

Change order of trusted.keystore scan in TrustedKeyStoreIsPresentCondition to be classpath, working directory then home directory, reflecting the documentation.

Remove System.err.printf statements.

Remove non-qualified 'ssl-keystore' and 'ssl-trustore' properties.

Edit Javadoc.

Optimize imports.
2019-09-10 00:59:36 -07:00