be.eliwan.profiling.aop
Class MethodProfilingInterceptor
java.lang.Object
be.eliwan.profiling.aop.MethodProfilingInterceptor
- All Implemented Interfaces:
- org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor
public class MethodProfilingInterceptor
- extends Object
- implements org.aopalliance.intercept.MethodInterceptor
Interceptor which automatically handles the profiling for a method.
MethodProfilingInterceptor
public MethodProfilingInterceptor()
setProfilingContainer
public void setProfilingContainer(ProfilingContainer profilingContainer)
- Set the
ProfilingContainer to use for the profiling.
- Parameters:
profilingContainer - profiling container- Since:
- 1.0.0
setGroup
public void setGroup(String group)
- Set the group to use when adding a registration for profiling.
- Parameters:
group - group name- Since:
- 1.0.0
invoke
public Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
throws Throwable
- Specified by:
invoke in interface org.aopalliance.intercept.MethodInterceptor
- Throws:
Throwable
Copyright © 2014. All rights reserved.