001package ch.qos.logback.core.model.processor;
002
003import ch.qos.logback.core.model.Model;
004import ch.qos.logback.core.spi.FilterReply;
005
006public class DenyModelFilter implements ModelFilter {
007
008    final Class<? extends Model> deniedModelType;
009
010    DenyModelFilter(Class<? extends Model> deniedModelType) {
011        this.deniedModelType = deniedModelType;
012    }
013
014    @Override
015    public FilterReply decide(Model model) {
016
017        if (model.getClass() == deniedModelType) {
018            return FilterReply.DENY;
019        }
020
021        return FilterReply.NEUTRAL;
022    }
023
024}