Class DuplicationStrategyImpl
java.lang.Object
org.hibernate.boot.beanvalidation.DuplicationStrategyImpl
- All Implemented Interfaces:
DuplicationStrategy
-
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
-
-
Constructor Details
-
DuplicationStrategyImpl
public DuplicationStrategyImpl()
-
-
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
-