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.


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

Method Detail

source

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 2007 Google Inc. All Rights Reserved.