public class NameBlackListFilter extends Object implements ClassNameFilter
| 限定符和类型 | 字段和说明 |
|---|---|
protected List<String> |
blackPrefixList
黑名单 包名前缀
|
protected ConcurrentMap<String,Boolean> |
resultOfInBlackList
类名是否在黑名单中结果缓存。
|
| 构造器和说明 |
|---|
NameBlackListFilter(List<String> blackPrefixList)
指定黑名单前缀
|
NameBlackListFilter(List<String> blackPrefixList,
int maxCacheSize)
指定黑名单前缀和缓存大小
|
protected ConcurrentMap<String,Boolean> resultOfInBlackList
public NameBlackListFilter(List<String> blackPrefixList)
blackPrefixList - 黑名单前缀protected void buildCache(int maxCacheSize)
maxCacheSize - 最大缓存public int order()
ClassNameFilterorder 在接口中 ClassNameFilterpublic String resolve(String className) throws IOException
ClassNameFilterresolve 在接口中 ClassNameFilterclassName - 类名IOExceptionCopyright © 2008–2018 Ant Financial. All rights reserved.