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 TypeMethodDescriptionbooleanAre 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:DuplicationStrategyAre the two listener instances considered a duplication?- Specified by:
areMatchin 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:DuplicationStrategyHow should a duplication be handled?- Specified by:
getActionin interfaceDuplicationStrategy- Returns:
- The strategy for handling duplication
-