ew-profiling, 1.0

be.eliwan.profiling.aop
Class MethodProfilingInterceptor

java.lang.Object
  extended by 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.


Constructor Summary
MethodProfilingInterceptor()
           
 
Method Summary
 Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
           
 void setGroup(String group)
          Set the group to use when adding a registration for profiling.
 void setProfilingContainer(ProfilingContainer profilingContainer)
          Set the ProfilingContainer to use for the profiling.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodProfilingInterceptor

public MethodProfilingInterceptor()
Method Detail

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

ew-profiling, 1.0

Copyright © 2014. All rights reserved.