|
||||||||||
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 java.lang.Object |
UNKNOWN_SOURCE
|
Method Summary | |
---|---|
static java.lang.Object |
defaultSource()
Returns the current source obtained from the default provider. |
static java.util.Set<java.lang.String> |
getSkippedClassNames()
Gets the set of class names which should be skipped by stacktrace-based providers. |
static void |
skip(java.lang.Class<?> clazz)
Instructs stacktrace-based providers to skip the given class in the stack trace when determining the source. |
static void |
withDefault(SourceProvider sourceProvider,
java.lang.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 java.lang.Object UNKNOWN_SOURCE
Method Detail |
---|
public static void skip(java.lang.Class<?> clazz)
Skipping only takes place after this method is called.
public static java.util.Set<java.lang.String> getSkippedClassNames()
public static java.lang.Object defaultSource()
public static void withDefault(SourceProvider sourceProvider, java.lang.Runnable r)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |