public class EnversListenerDuplicationStrategy extends Object implements DuplicationStrategy
DuplicationStrategy.Action
Modifier and Type | Field and Description |
---|---|
static EnversListenerDuplicationStrategy |
INSTANCE |
Constructor and Description |
---|
EnversListenerDuplicationStrategy() |
Modifier and Type | Method and Description |
---|---|
boolean |
areMatch(Object listener,
Object original)
Are the two listener instances considered a duplication?
|
DuplicationStrategy.Action |
getAction()
How should a duplication be handled?
|
public static final EnversListenerDuplicationStrategy INSTANCE
public boolean areMatch(Object listener, Object original)
DuplicationStrategy
areMatch
in interface DuplicationStrategy
listener
- The listener we are currently trying to registeroriginal
- An already registered listenerpublic DuplicationStrategy.Action getAction()
DuplicationStrategy
getAction
in interface DuplicationStrategy
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.