Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A question about the event mechanism in SpringSession #1287

Closed
glmapper opened this issue Dec 15, 2018 · 1 comment
Closed

A question about the event mechanism in SpringSession #1287

glmapper opened this issue Dec 15, 2018 · 1 comment
Assignees
Labels
for: stack-overflow A question that's better suited to stackoverflow.com

Comments

@glmapper
Copy link

I have a doubt when I am learning the SpringSession source code. In the RedisOperationsSessionRepository class, when trying to publish an event, such as SessionCreatedEvent, the publishEvent in eventPublisher is a null operation.

private ApplicationEventPublisher eventPublisher = new ApplicationEventPublisher() {
   @Override
   public void publishEvent(ApplicationEvent event) {
   }

   @Override
   public void publishEvent(Object event) {
   }
};
@rwinch rwinch self-assigned this Dec 17, 2018
@rwinch rwinch added the for: stack-overflow A question that's better suited to stackoverflow.com label Dec 17, 2018
@rwinch
Copy link
Member

rwinch commented Dec 17, 2018

@gaborcs Thank you for using Spring Session and for your question!

This is the default eventPublisher. A custom implementation is typically injected in via RedisOperationsSessionRepository.setApplicationEventPublisher

I'm closing this as answered. In the future please post questions to StackOverflow as this is our preferred mechanism for questions.

@rwinch rwinch closed this as completed Dec 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: stack-overflow A question that's better suited to stackoverflow.com
Projects
None yet
Development

No branches or pull requests

2 participants