com.atlassian.jira.config.component
Class GroupedMethodProfiler

java.lang.Object
  extended by com.atlassian.jira.config.component.GroupedMethodProfiler

public class GroupedMethodProfiler
extends Object


Constructor Summary
GroupedMethodProfiler()
           
 
Method Summary
static Object getProfiledObject(Object o)
           
static String getTrimmedClassName(Method method)
          Given a method, get the Method name, with no package information.
static Object profiledInvoke(Method target, Object value, Object[] args)
          A profiled call Method.invoke(Object, Object[]).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupedMethodProfiler

public GroupedMethodProfiler()
Method Detail

getProfiledObject

public static Object getProfiledObject(Object o)

profiledInvoke

public static Object profiledInvoke(Method target,
                                    Object value,
                                    Object[] args)
                             throws IllegalAccessException,
                                    InvocationTargetException
A profiled call Method.invoke(Object, Object[]). If UtilTimerStack.isActive() returns false, then no profiling is performed.

Throws:
IllegalAccessException
InvocationTargetException

getTrimmedClassName

public static String getTrimmedClassName(Method method)
Given a method, get the Method name, with no package information.



Copyright © 2002-2009 Atlassian. All Rights Reserved.