public class StackLocator extends Object
| Modifier and Type | Method and Description |
|---|---|
StackTraceElement |
calcLocation(String fqcnOfLogger) |
Class<?> |
getCallerClass(Class<?> anchor)
Reverse engr docs: I think this returns the class of the caller to the first
found instance of the anchor class in the current stack.
|
Class<?> |
getCallerClass(int depth) |
Class<?> |
getCallerClass(String fqcn,
String pkg)
Reverse engr some docs here: I think this returns the calling class
from a specified package.
|
Stack<Class<?>> |
getCurrentStackTrace() |
static StackLocator |
getInstance() |
protected org.yarnandtail.andhow.util.StackLocator.PrivateSecurityManager |
getSecurityManager() |
StackTraceElement |
getStackTraceElement(int depth) |
public static StackLocator getInstance()
public Class<?> getCallerClass(int depth)
public Class<?> getCallerClass(String fqcn, String pkg)
fqcn - Fully qualified class name of the class that was called.pkg - Package of the class you are interested in finding who called the fqcn class.public Class<?> getCallerClass(Class<?> anchor)
anchor - public StackTraceElement calcLocation(String fqcnOfLogger)
public StackTraceElement getStackTraceElement(int depth)
protected org.yarnandtail.andhow.util.StackLocator.PrivateSecurityManager getSecurityManager()
Copyright © 2017. All rights reserved.