public interface CustomClassFilter extends ExtensionPoint
ClassFilter.DEFAULT
.
Custom filters can be called frequently, and return values are uncached, so implementations should be fast.ClassFilterImpl
Modifier and Type | Interface and Description |
---|---|
static class |
CustomClassFilter.Contributed
Standard filter which can load whitelists and blacklists from plugins.
|
static class |
CustomClassFilter.Static
Standard filter which pays attention to a system property.
|
ExtensionPoint.LegacyInstancesAreScopedToHudson
Modifier and Type | Method and Description |
---|---|
default Boolean |
permits(Class<?> c)
Determine whether a class should be permitted by
ClassFilter.isBlacklisted(Class) of ClassFilter.DEFAULT . |
default Boolean |
permits(String name)
Determine whether a class should be permitted by
ClassFilter.isBlacklisted(String) of ClassFilter.DEFAULT . |
@CheckForNull default Boolean permits(Class<?> c)
ClassFilter.isBlacklisted(Class)
of ClassFilter.DEFAULT
.c
- the class@CheckForNull default Boolean permits(String name)
ClassFilter.isBlacklisted(String)
of ClassFilter.DEFAULT
.name
- a class nameClassFilter.STANDARD
;
null to express no opinion (the default)Copyright © 2004–2021. All rights reserved.