From 2a30b08d25ee4f66187923951514be1b31ba03f0 Mon Sep 17 00:00:00 2001 From: John Blum Date: Wed, 21 Nov 2018 16:29:08 -0800 Subject: [PATCH] Change all configuration based, JavaBean property accessor methods (getters) to public. --- .../http/GemFireHttpSessionConfiguration.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/spring-session-data-geode/src/main/java/org/springframework/session/data/gemfire/config/annotation/web/http/GemFireHttpSessionConfiguration.java b/spring-session-data-geode/src/main/java/org/springframework/session/data/gemfire/config/annotation/web/http/GemFireHttpSessionConfiguration.java index 334d3df..7664d79 100644 --- a/spring-session-data-geode/src/main/java/org/springframework/session/data/gemfire/config/annotation/web/http/GemFireHttpSessionConfiguration.java +++ b/spring-session-data-geode/src/main/java/org/springframework/session/data/gemfire/config/annotation/web/http/GemFireHttpSessionConfiguration.java @@ -280,7 +280,7 @@ public class GemFireHttpSessionConfiguration extends AbstractGemFireHttpSessionC * of the {@link ClientCache} {@link Region}. * @see org.apache.geode.cache.client.ClientRegionShortcut */ - protected ClientRegionShortcut getClientRegionShortcut() { + public ClientRegionShortcut getClientRegionShortcut() { return Optional.ofNullable(this.clientRegionShortcut) .orElse(DEFAULT_CLIENT_REGION_SHORTCUT); @@ -303,7 +303,7 @@ public class GemFireHttpSessionConfiguration extends AbstractGemFireHttpSessionC * @return an array of {@link String Strings} containing the names of all {@link Session} attributes * for which an Index will be created. Defaults to an empty array if unspecified. */ - protected String[] getIndexableSessionAttributes() { + public String[] getIndexableSessionAttributes() { return Optional.ofNullable(this.indexableSessionAttributes) .orElse(DEFAULT_INDEXABLE_SESSION_ATTRIBUTES); @@ -326,7 +326,7 @@ public class GemFireHttpSessionConfiguration extends AbstractGemFireHttpSessionC * @return an integer value specifying the maximum interval in seconds that a {@link Session} can remain inactive * before it expires. */ - protected int getMaxInactiveIntervalInSeconds() { + public int getMaxInactiveIntervalInSeconds() { return this.maxInactiveIntervalInSeconds; } @@ -348,7 +348,7 @@ public class GemFireHttpSessionConfiguration extends AbstractGemFireHttpSessionC * @return a {@link String} containing the name of a {@link Pool}. * @see org.apache.geode.cache.client.Pool#getName() */ - protected String getPoolName() { + public String getPoolName() { return Optional.ofNullable(this.poolName) .filter(StringUtils::hasText) @@ -380,7 +380,7 @@ public class GemFireHttpSessionConfiguration extends AbstractGemFireHttpSessionC * of the {@link Cache} {@link Region}. * @see org.apache.geode.cache.RegionShortcut */ - protected RegionShortcut getServerRegionShortcut() { + public RegionShortcut getServerRegionShortcut() { return Optional.ofNullable(this.serverRegionShortcut) .orElse(DEFAULT_SERVER_REGION_SHORTCUT); @@ -390,7 +390,7 @@ public class GemFireHttpSessionConfiguration extends AbstractGemFireHttpSessionC this.sessionExpirationPolicyBeanName = sessionExpirationPolicyBeanName; } - protected Optional getSessionExpirationPolicyBeanName() { + public Optional getSessionExpirationPolicyBeanName() { return Optional.ofNullable(this.sessionExpirationPolicyBeanName) .filter(StringUtils::hasText); @@ -414,7 +414,7 @@ public class GemFireHttpSessionConfiguration extends AbstractGemFireHttpSessionC * used to store {@link Session} state. * @see org.apache.geode.cache.Region#getName() */ - protected String getSessionRegionName() { + public String getSessionRegionName() { return Optional.ofNullable(this.sessionRegionName) .filter(StringUtils::hasText) @@ -452,7 +452,7 @@ public class GemFireHttpSessionConfiguration extends AbstractGemFireHttpSessionC * @see org.springframework.session.data.gemfire.serialization.data.provider.DataSerializableSessionSerializer * @see org.springframework.session.data.gemfire.serialization.SessionSerializer */ - protected String getSessionSerializerBeanName() { + public String getSessionSerializerBeanName() { return Optional.ofNullable(this.sessionSerializerBeanName) .filter(StringUtils::hasText)