org.hibernate.cfg.beanvalidation
Class DuplicationStrategyImpl
java.lang.Object
org.hibernate.cfg.beanvalidation.DuplicationStrategyImpl
- All Implemented Interfaces:
- DuplicationStrategy
public class DuplicationStrategyImpl
- extends Object
- implements DuplicationStrategy
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final DuplicationStrategyImpl INSTANCE
DuplicationStrategyImpl
public DuplicationStrategyImpl()
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 interface DuplicationStrategy
- 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 interface DuplicationStrategy
- Returns:
- The strategy for handling duplication
Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.