SmartFrog 3.10.000

org.smartfrog.sfcore.logging
Interface CallDetective

All Known Implementing Classes:
CallDetective.CallDetective1_3, CallDetective.CallDetective1_4

public interface CallDetective

This interface is used to determine who called us. The implementation does not have to be thread-safe. http://www.javaspecialists.co.za/


Nested Class Summary
static class CallDetective.CallDetective1_3
          This is a pre-JDK 1.4 version of the CallDetective.
static class CallDetective.CallDetective1_4
          This class is used to determine who called us.
static class CallDetective.Factory
          Description of the Class
 
Method Summary
 java.lang.String findCaller(int depth)
          Returns a String representation of who called us, going back depth levels.
 

Method Detail

findCaller

java.lang.String findCaller(int depth)
Returns a String representation of who called us, going back depth levels. Example: Declaration: private static CallDetective detective = CallDetective.Factory.makeCallDetective(); String caller = ""; Use in code: caller=detective.findCaller(5);

Parameters:
depth - must be greater than 0 and may not exceed the call stack depth.
Returns:
Description of the Return Value

SmartFrog CORE 3.10.000

(C) Copyright 1998-2006 Hewlett-Packard Development Company, LP