liveBook · Manning

Handler

As explained in Java Persistence with Spring Data and Hibernate epub

An event handler is a component that receives an event and performs processing in response to it.

In Spring Data REST, an event handler reacts to repository events and adds side-effect behavior. Handlers can address the same event types as listeners. section 16.5.2

Repository events include:

Handlers use declarative annotations on classes and methods. Listeners instead extend an abstract class, which constrains their place in the class hierarchy. section 16.5.2

How Java Persistence with Spring Data and Hibernate epub covers it

How deep it goes
Compares declarative handler annotations with listener inheritance, but does not detail handler implementation.
Examples
Maps create, save, delete, and linked-object operations to repository events.
What you can do after
Configure declarative class- and method-level handlers to add side effects for repository events.
How it connects
Connects handlers to repository events and event listeners.

Also explained in

Compare how 23 books explain handler →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Java Persistence with Spring Data and Hibernate epub. The section links point to the parts of the book it draws on.