Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.hibernate.event.service.spi
Interface DuplicationStrategy

All Known Implementing Classes:
  DuplicationStrategyImpl, EnversListenerDuplicationStrategy

    public interface DuplicationStrategy

Defines listener duplication checking strategy, both in terms of when a duplication is detected (see `areMatch(java.lang.Object, java.lang.Object)`) as well as how to handle a duplication (see `getAction()`).

Nested Class Summary
`static class` | `DuplicationStrategy.Action` The enumerated list of actions available on duplication match

Method Summary
`boolean` | `areMatch(Object listener, Object original)` Are the two listener instances considered a duplication?
`DuplicationStrategy.Action` | `getAction()` How should a duplication be handled?

Method Detail

### areMatch

    boolean areMatch(Object listener,
                     Object original)

  Are the two listener instances considered a duplication?

  Parameters:
    `listener` - The listener we are currently trying to register
    `original` - An already registered listener
  Returns:
    true if the two instances are considered a duplication; false otherwise

### getAction

    DuplicationStrategy.Action getAction()

  How should a duplication be handled?

  Returns:
    The strategy for handling duplication

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.