com.jamonapi.proxy
Interface MonProxyLabelerInt

All Superinterfaces:
java.lang.Cloneable
All Known Implementing Classes:
MonProxyLabeler

public interface MonProxyLabelerInt
extends java.lang.Cloneable

This method is called by MonProxy to determine the jamon summary label for each method invoked. It also creates a monitor when the interface throws an exception. getSummaryLabel(...) and getExceptionLabel(...) are called respectively for each type of monitor. You can replace the default implementation with your own should you want. Simply call MonProxy.setLabeler(...) and it will be used. Note you should implement public Object clone().


Method Summary
 java.lang.Object clone()
           
 java.lang.String getExceptionLabel(java.lang.reflect.Method method)
          When an exception is thrown this returns what jamon label do you want to use
 java.lang.String getSummaryLabel(java.lang.reflect.Method method)
          Summary label that you want jamon to use
 void init(MonProxy monProxy)
          Note init is called at time of initialization.
 

Method Detail

getSummaryLabel

java.lang.String getSummaryLabel(java.lang.reflect.Method method)
Summary label that you want jamon to use


getExceptionLabel

java.lang.String getExceptionLabel(java.lang.reflect.Method method)
When an exception is thrown this returns what jamon label do you want to use


init

void init(MonProxy monProxy)
Note init is called at time of initialization. This is a good time to get the class name being monitored for example via something like monProxy.getMonitoredObject().getClass().getName()


clone

java.lang.Object clone()