use of com.newrelic.agent.instrumentation.methodmatchers.NotMethodMatcher in project newrelic-java-agent by newrelic.
the class InstrumentationImpl method instrument.
@Override
public void instrument(String className, String metricPrefix) {
DefaultClassAndMethodMatcher matcher = new HashSafeClassAndMethodMatcher(new ExactClassMatcher(className), AndMethodMatcher.getMethodMatcher(new AccessMethodMatcher(Opcodes.ACC_PUBLIC), new NotMethodMatcher(GetterSetterMethodMatcher.getGetterSetterMethodMatcher())));
ServiceFactory.getClassTransformerService().addTraceMatcher(matcher, metricPrefix);
}
Aggregations