|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.inject.spi.SourceProviders
public class SourceProviders
Provides access to the default SourceProvider
implementation and
common controls for certain implementations.
Field Summary | |
---|---|
static Object |
UNKNOWN_SOURCE
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Object UNKNOWN_SOURCE
Method Detail |
---|
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |