public class DuplicationStrategyImpl extends Object implements DuplicationStrategy
DuplicationStrategy.Action| Modifier and Type | Field and Description |
|---|---|
static DuplicationStrategyImpl |
INSTANCE |
| Constructor and Description |
|---|
DuplicationStrategyImpl() |
| 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 DuplicationStrategyImpl INSTANCE
public boolean areMatch(Object listener, Object original)
DuplicationStrategyareMatch in interface DuplicationStrategylistener - The listener we are currently trying to registeroriginal - An already registered listenerpublic DuplicationStrategy.Action getAction()
DuplicationStrategygetAction in interface DuplicationStrategyCopyright © 2019 JBoss by Red Hat. All rights reserved.