Package org.hibernate.envers.event.spi
Class EnversListenerDuplicationStrategy
- java.lang.Object
-
- org.hibernate.envers.event.spi.EnversListenerDuplicationStrategy
-
- All Implemented Interfaces:
DuplicationStrategy
public class EnversListenerDuplicationStrategy extends Object implements 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 Modifier and Type Field Description static EnversListenerDuplicationStrategy
INSTANCE
Singleton access
-
Constructor Summary
Constructors Constructor Description EnversListenerDuplicationStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
areMatch(Object listener, Object original)
Are the two listener instances considered a duplication?DuplicationStrategy.Action
getAction()
How should a duplication be handled?
-
-
-
Field Detail
-
INSTANCE
public static final EnversListenerDuplicationStrategy INSTANCE
Singleton access
-
-
Method Detail
-
areMatch
public boolean areMatch(Object listener, Object original)
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
public DuplicationStrategy.Action getAction()
Description copied from interface:DuplicationStrategy
How should a duplication be handled?- Specified by:
getAction
in interfaceDuplicationStrategy
- Returns:
- The strategy for handling duplication
-
-