com.google.inject.spi
Interface SourceProvider


public interface SourceProvider

Provides source objects to the Binder. A source object is any object which points back to the current location within the configuration. Guice uses source objects in error messages and associates them with bindings.

Author:
crazybob@google.com (Bob Lee)

Method Summary
 java.lang.Object source()
          Creates an object pointing to the current location within the configuration.
 

Method Detail

source

java.lang.Object source()
Creates an object pointing to the current location within the configuration. If we run into a problem later, we'll be able to trace it back to the original source. Useful for debugging.



Copyright © 2008. All Rights Reserved.