Class EnversListenerDuplicationStrategy

  • All Implemented Interfaces:
    DuplicationStrategy

    public class EnversListenerDuplicationStrategy
    extends java.lang.Object
    implements DuplicationStrategy
    Event listener duplication strategy for envers
    • Constructor Detail

      • EnversListenerDuplicationStrategy

        public EnversListenerDuplicationStrategy()
    • Method Detail

      • areMatch

        public boolean areMatch​(java.lang.Object listener,
                                java.lang.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 register
        original - An already registered listener
        Returns:
        true if the two instances are considered a duplication; false otherwise