use of org.apache.tapestry5.ioc.internal.services.LoggingAdvice in project tapestry-5 by apache.
the class LogWorker method transform.
public void transform(PlasticClass plasticClass, TransformationSupport support, MutableComponentModel model) {
List<PlasticMethod> methods = plasticClass.getMethodsWithAnnotation(Log.class);
if (methods.isEmpty()) {
return;
}
final MethodAdvice loggingAdvice = new LoggingAdvice(model.getLogger(), exceptionTracker);
for (PlasticMethod method : methods) {
method.addAdvice(loggingAdvice);
}
}
use of org.apache.tapestry5.ioc.internal.services.LoggingAdvice in project tapestry-5 by apache.
the class LoggingAdvisorImpl method addLoggingAdvice.
@Override
public void addLoggingAdvice(Logger logger, MethodAdviceReceiver receiver) {
MethodAdvice advice = new LoggingAdvice(logger, exceptionTracker);
receiver.adviseAllMethods(advice);
}
Aggregations