use of com.navercorp.pinpoint.bootstrap.instrument.matcher.MultiClassNameMatcher in project pinpoint by naver.
the class DefaultTransformerRegistry method addTransformer.
public void addTransformer(Matcher matcher, ClassFileTransformer transformer) {
// TODO extract matcher process
if (matcher instanceof ClassNameMatcher) {
final ClassNameMatcher classNameMatcher = (ClassNameMatcher) matcher;
String className = classNameMatcher.getClassName();
addModifier0(transformer, className);
} else if (matcher instanceof MultiClassNameMatcher) {
final MultiClassNameMatcher classNameMatcher = (MultiClassNameMatcher) matcher;
List<String> classNameList = classNameMatcher.getClassNames();
for (String className : classNameList) {
addModifier0(transformer, className);
}
} else {
throw new IllegalArgumentException("unsupported matcher :" + matcher);
}
}
use of com.navercorp.pinpoint.bootstrap.instrument.matcher.MultiClassNameMatcher in project pinpoint by naver.
the class JavassistTranslator method addTransformer.
public void addTransformer(MatchableClassFileTransformer transformer) {
// TODO extract matcher process
final Matcher matcher = transformer.getMatcher();
if (matcher instanceof ClassNameMatcher) {
ClassNameMatcher classNameMatcher = (ClassNameMatcher) matcher;
String className = classNameMatcher.getClassName();
addTransformer0(transformer, className);
} else if (matcher instanceof MultiClassNameMatcher) {
final MultiClassNameMatcher classNameMatcher = (MultiClassNameMatcher) matcher;
List<String> classNameList = classNameMatcher.getClassNames();
for (String className : classNameList) {
addTransformer0(transformer, className);
}
} else {
throw new IllegalArgumentException("unsupported Matcher " + matcher);
}
}
use of com.navercorp.pinpoint.bootstrap.instrument.matcher.MultiClassNameMatcher in project pinpoint by naver.
the class DefaultTranslator method addTransformer.
public void addTransformer(MatchableClassFileTransformer transformer) {
// TODO extract matcher process
final Matcher matcher = transformer.getMatcher();
if (matcher instanceof ClassNameMatcher) {
ClassNameMatcher classNameMatcher = (ClassNameMatcher) matcher;
String className = classNameMatcher.getClassName();
addTransformer0(transformer, className);
} else if (matcher instanceof MultiClassNameMatcher) {
final MultiClassNameMatcher classNameMatcher = (MultiClassNameMatcher) matcher;
List<String> classNameList = classNameMatcher.getClassNames();
for (String className : classNameList) {
addTransformer0(transformer, className);
}
} else {
throw new IllegalArgumentException("unsupported Matcher " + matcher);
}
}
Aggregations