Skip to content

Simple project created to evaluating observer pattern from spring implementation

Notifications You must be signed in to change notification settings

fernandoferreiratbe/spring-observer-event-support

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-observer-event-support

Simple project created to evaluate observer pattern from spring implementation

The main idea behind this project is to test the behavior of:

  • org.springframework.context.ApplicationEventPublisher
  • org.springframework.context.event.EventListener

ApplicationEventPublisher is a bean managed by Spring Context and it implements Observer Pattern. EventListener is an annotation used to define a method as receiver. The methods annotated as @EventListener will be notified by ApplicationEventPublisher.

The contract should be respected. It means that ApplicationEventPublisher will notify a well defined object. Then the signature of the receiver method should be defined according to the same class / object sent by the publisher.

About

Simple project created to evaluating observer pattern from spring implementation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages