
com.newrelic.agent.instrumentation.pointcuts.frameworks.faces.PhasePointCut Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of newrelic-agent Show documentation
Show all versions of newrelic-agent Show documentation
Jar required to run with a java application to monitor performance.
The newest version!
/*
*
* * Copyright 2020 New Relic Corporation. All rights reserved.
* * SPDX-License-Identifier: Apache-2.0
*
*/
package com.newrelic.agent.instrumentation.pointcuts.frameworks.faces;
import com.newrelic.agent.Transaction;
import com.newrelic.agent.instrumentation.PointCutConfiguration;
import com.newrelic.agent.instrumentation.TracerFactoryPointCut;
import com.newrelic.agent.instrumentation.classmatchers.ExactClassMatcher;
import com.newrelic.agent.tracers.ClassMethodSignature;
import com.newrelic.agent.tracers.DefaultTracer;
import com.newrelic.agent.tracers.Tracer;
import com.newrelic.agent.tracers.metricname.ClassMethodMetricNameFormat;
public class PhasePointCut extends TracerFactoryPointCut {
public PhasePointCut() {
super(
new PointCutConfiguration(PhasePointCut.class),
new ExactClassMatcher("com/sun/faces/lifecycle/Phase"),
createExactMethodMatcher("doPhase",
"(Ljavax/faces/context/FacesContext;Ljavax/faces/lifecycle/Lifecycle;Ljava/util/ListIterator;)V"));
}
@Override
public Tracer doGetTracer(Transaction transaction, ClassMethodSignature sig, Object phase, Object[] args) {
return new DefaultTracer(transaction, sig, phase, new ClassMethodMetricNameFormat(sig, phase));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy