public class ClassNameFilter
extends java.lang.Object
| Constructor and Description |
|---|
ClassNameFilter(IAgentLogger logger) |
| Modifier and Type | Method and Description |
|---|---|
void |
addClassMatcherIncludes(java.util.Collection<ClassMatcher> classMatchers) |
void |
addConfigClassFilters(AgentConfig config)
Add include/exclude classes in the configuration file.
|
void |
addExclude(java.lang.String exclude)
Exclude matching classes.
|
void |
addExcludeClass(java.lang.String className)
Exclude the given class.
|
void |
addExcludeFileClassFilters()
Add excluded classes in the META-INF/excludes file.
|
void |
addExcludeRegex(java.lang.String regex)
Exclude classes matching the regular expression.
|
void |
addInclude(java.lang.String include)
Include matching classes.
|
void |
addIncludeClass(java.lang.String className)
Include the given class.
|
void |
addIncludeRegex(java.lang.String regex)
Include classes matching the regular expression.
|
boolean |
isExcluded(java.lang.String className)
Check if a class should be excluded from class transformation based on an excludes rule.
|
boolean |
isIncluded(java.lang.String className)
Is the class included.
|
public ClassNameFilter(IAgentLogger logger)
public boolean isExcluded(java.lang.String className)
excludePatterns is a list of exclude rules merged together from user config and the default META-INF/excludes file. Exclude rules are evaluated when determining whether to transform weaved classes in the InstrumentationContextManager or pointcuts in the PointCutClassTransformer.
className - name of the class to check exclusion rule fortrue if this is an excluded class, false if notpublic boolean isIncluded(java.lang.String className)
true if this is an included class, false if notpublic void addConfigClassFilters(AgentConfig config)
public void addExcludeFileClassFilters()
public void addInclude(java.lang.String include)
include - either a class name or a regular expressionpublic void addIncludeClass(java.lang.String className)
className - the name of the class to includepublic void addIncludeRegex(java.lang.String regex)
regex - a regular expression matching classes to includepublic void addExclude(java.lang.String exclude)
exclude - either a class name or a regular expressionpublic void addExcludeClass(java.lang.String className)
className - the name of the class to excludepublic void addExcludeRegex(java.lang.String regex)
regex - a regular expression matching classes to includepublic void addClassMatcherIncludes(java.util.Collection<ClassMatcher> classMatchers)