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
ConstructorDescriptionSessionExpirationTimeoutAwareBeanPostProcessor
(Duration expirationTimeout) Constructs a newSessionExpirationTimeoutAwareBeanPostProcessor
initialized with the givenSession
expiration timeout
. -
Method Summary
Modifier and TypeMethodDescriptionprotected Duration
Returns the configuredSession
expiration timeout
.postProcessBeforeInitialization
(Object bean, String beanName) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.beans.factory.config.BeanPostProcessor
postProcessAfterInitialization
-
Constructor Details
-
SessionExpirationTimeoutAwareBeanPostProcessor
Constructs a newSessionExpirationTimeoutAwareBeanPostProcessor
initialized with the givenSession
expiration timeout
.- Parameters:
expirationTimeout
-Duration
specifying the length of time untilSession
expires.- Throws:
IllegalArgumentException
- ifDuration
is null.- See Also:
-
-
Method Details
-
getExpirationTimeout
Returns the configuredSession
expiration timeout
.- Returns:
- the configured
Session
expiration timeout
. - See Also:
-
postProcessBeforeInitialization
@Nullable public Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException - Specified by:
postProcessBeforeInitialization
in interfaceorg.springframework.beans.factory.config.BeanPostProcessor
- Throws:
org.springframework.beans.BeansException
-