Class ThreadLocalMethodHooks
- java.lang.Object
-
- com.atlassian.confluence.impl.profiling.ThreadLocalMethodHooks
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.springframework.aop.MethodBeforeAdviceadvice()static voidregisterHook(Method method, org.springframework.aop.MethodBeforeAdvice hook)Register the given hook to run against any cal to the given method on the current thread.static voidunregisterHooks()Unregister any method hooks registered on the current thread.
-
-
-
Method Detail
-
advice
public static org.springframework.aop.MethodBeforeAdvice advice()
- Returns:
- a method interceptor that will invoke any hooks registered for the current thread.
-
registerHook
public static void registerHook(Method method, org.springframework.aop.MethodBeforeAdvice hook)
Register the given hook to run against any cal to the given method on the current thread.
-
unregisterHooks
public static void unregisterHooks()
Unregister any method hooks registered on the current thread.
-
-