|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.inject.spi.SourceConsumer
public class SourceConsumer
Support for classes which use source objects.
Constructor Summary | |
---|---|
SourceConsumer()
|
Method Summary | |
---|---|
SourceProvider |
getSourceProvider()
Gets the current source provider. |
void |
setSourceProvider(SourceProvider sourceProvider)
Sets the current source provider. |
protected java.lang.Object |
source()
Returns the current source. |
void |
withSourceProvider(SourceProvider sourceProvider,
java.lang.Runnable r)
Sets the source provider, runs the given command, and restores the previous source provider. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SourceConsumer()
Method Detail |
---|
protected java.lang.Object source()
public SourceProvider getSourceProvider()
public void setSourceProvider(SourceProvider sourceProvider)
public void withSourceProvider(SourceProvider sourceProvider, java.lang.Runnable r)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |