summaryrefslogtreecommitdiff
path: root/src/main/java/org/mockito/internal/listeners/AutoCleanableListener.java
blob: cfd2a532698f94240473f029f1c3ebeec2e43c0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * Copyright (c) 2018 Mockito contributors
 * This program is made available under the terms of the MIT License.
 */
package org.mockito.internal.listeners;

/**
 * Listener that is automatically cleaned up (removed from the the global list of subscribers).
 * For now, we don't intend to make this interface public.
 */
public interface AutoCleanableListener {

    /**
     * Indicates that the listener is dirty and should be removed from the subscribers
     */
    boolean isListenerDirty();
}