portal.services.monitor
Interface IMonitorService

All Superinterfaces:
IService
All Known Implementing Classes:
MonitorServiceImpl

public interface IMonitorService
extends IService

Author:
Bavo De Ridder Use this class to time executions of method calls on interfaces.

Method Summary
 java.lang.Object monitor(java.lang.Object pTarget, java.lang.Class pInterface, java.lang.String pName)
          Create an object implementing pInterface that times and logs calls to the real implementation given by pTarget.
 

Method Detail

monitor

public java.lang.Object monitor(java.lang.Object pTarget,
                                java.lang.Class pInterface,
                                java.lang.String pName)
Create an object implementing pInterface that times and logs calls to the real implementation given by pTarget. Timings will be logged with pName.

Parameters:
pTarget - The implementation class to monitor
pInterface - The interface implemented by pTarget
pName - The name to use in logging
Returns: