public class SourceProviders extends Object
SourceProvider
implementation and
common controls for certain implementations.Modifier and Type | Field and Description |
---|---|
static Object |
UNKNOWN_SOURCE |
Modifier and Type | Method and Description |
---|---|
static Object |
defaultSource()
Returns the current source obtained from the default provider.
|
static Set<String> |
getSkippedClassNames()
Gets the set of class names which should be skipped by stacktrace-based
providers.
|
static void |
skip(Class<?> clazz)
Instructs stacktrace-based providers to skip the given class in the stack
trace when determining the source.
|
static void |
withDefault(SourceProvider sourceProvider,
Runnable r)
Sets the default source provider, runs the given command, and then
restores the previous default source provider.
|
public static final Object UNKNOWN_SOURCE
public static void skip(Class<?> clazz)
Skipping only takes place after this method is called.
public static Set<String> getSkippedClassNames()
public static Object defaultSource()
public static void withDefault(SourceProvider sourceProvider, Runnable r)
Copyright © 2013. All Rights Reserved.