Package org.hibernate.envers.event.spi
Class EnversListenerDuplicationStrategy
java.lang.Object
org.hibernate.envers.event.spi.EnversListenerDuplicationStrategy
- All Implemented Interfaces:
DuplicationStrategy
Event listener duplication strategy for envers
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.hibernate.event.service.spi.DuplicationStrategy
DuplicationStrategy.Action
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Are the two listener instances considered a duplication?How should a duplication be handled?
-
Field Details
-
INSTANCE
Singleton access
-
-
Constructor Details
-
EnversListenerDuplicationStrategy
public EnversListenerDuplicationStrategy()
-
-
Method Details
-
areMatch
Description copied from interface:DuplicationStrategy
Are the two listener instances considered a duplication?- Specified by:
areMatch
in interfaceDuplicationStrategy
- Parameters:
listener
- The listener we are currently trying to registeroriginal
- An already registered listener- Returns:
- true if the two instances are considered a duplication; false otherwise
-
getAction
Description copied from interface:DuplicationStrategy
How should a duplication be handled?- Specified by:
getAction
in interfaceDuplicationStrategy
- Returns:
- The strategy for handling duplication
-