Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Guice
    Guice is a dependency injection framework and can be used to dynamically inject pluggable components.
    Please refer
    http://code.google.com/p/google-guice/wikJamiroquaii/Motivation
    . We can use Guice in following scenarios:
    • Pluggable manifest generator: It may be desirable to have different implementation of manifest generator for non-puppet setup or for testing.
    • Injecting in-memory database (if possible) instead of a real persistent database for testing. It needs to be investigated how Guice fits with the ORM tools.
    • Injecting a stub implementation of heartbeat handler.
    • It may be a good idea to bind API implementations for management or monitoring via Guice. This will allow testing of APIs and the server independent of the implementation via mock implementations. For example, the management api implementation in coordinator can be mocked so that API definitions and URIs can be independently tested.
    • Injecting mock objects for dependency tracker, or stage planner for testing.