|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cocoon.profiling.aspects.InvocationDispatcher
public class InvocationDispatcher
The dispatcher gets invoked by a profiling aspect. Based on the class of the component that is
invoked a specific Profiler is used to fill a ProfilingData object.
New profilers can be installed with installProfiler(Profiler). More specific profilers will be
chosen first automatically. The recommended way to install a Profiler is to declare it as a
spring-managed bean. The AutomaticProfilerInstaller will install the Profiler
automatically on the correct InvocationDispatcher.
| Field Summary | |
|---|---|
protected static org.slf4j.Logger |
LOG
Logger. |
| Constructor Summary | |
|---|---|
InvocationDispatcher()
|
|
| Method Summary | |
|---|---|
Object |
dispatch(org.aspectj.lang.ProceedingJoinPoint pjp)
Creates a new ProfilingData object and routes this invocation to a Profiler. |
void |
installProfiler(Profiler<?> profiler)
Installs a new profiler. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.slf4j.Logger LOG
| Constructor Detail |
|---|
public InvocationDispatcher()
| Method Detail |
|---|
public Object dispatch(org.aspectj.lang.ProceedingJoinPoint pjp)
throws Throwable
Profiler.
pjp - the joinpoint
ProceedingJoinPoint.proceed()
Throwable - throwable from ProceedingJoinPoint.proceed()public void installProfiler(Profiler<?> profiler)
profiler - the profiler to install
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||