Spring Session for VMware GemFire
Class SessionExpirationTimeoutAwareBeanPostProcessor
java.lang.Object
org.springframework.session.data.gemfire.expiration.config.SessionExpirationTimeoutAwareBeanPostProcessor
- All Implemented Interfaces:
org.springframework.beans.factory.config.BeanPostProcessor
public class SessionExpirationTimeoutAwareBeanPostProcessor
extends Object
implements org.springframework.beans.factory.config.BeanPostProcessor
The
SessionExpirationTimeoutAwareBeanPostProcessor class is a Spring BeanPostProcessor handling
the post processing of all Spring beans defined in the Spring container implementing
the SessionExpirationTimeoutAware interface.- Since:
- 2.1.0
- See Also:
-
BeanPostProcessor
-
Constructor Summary
ConstructorsConstructorDescriptionSessionExpirationTimeoutAwareBeanPostProcessor(Duration expirationTimeout) Constructs a newSessionExpirationTimeoutAwareBeanPostProcessorinitialized with the givenSessionexpiration timeout. -
Method Summary
Modifier and TypeMethodDescriptionprotected DurationReturns the configuredSessionexpiration timeout.postProcessBeforeInitialization(Object bean, String beanName) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.config.BeanPostProcessor
postProcessAfterInitialization
-
Constructor Details
-
SessionExpirationTimeoutAwareBeanPostProcessor
Constructs a newSessionExpirationTimeoutAwareBeanPostProcessorinitialized with the givenSessionexpiration timeout.- Parameters:
expirationTimeout-Durationspecifying the length of time untilSessionexpires.- Throws:
IllegalArgumentException- ifDurationis null.- See Also:
-
-
Method Details
-
getExpirationTimeout
Returns the configuredSessionexpiration timeout.- Returns:
- the configured
Sessionexpiration timeout. - See Also:
-
postProcessBeforeInitialization
@Nullable public Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException - Specified by:
postProcessBeforeInitializationin interfaceorg.springframework.beans.factory.config.BeanPostProcessor- Throws:
org.springframework.beans.BeansException
-