Moonshine Reference Documentation


Authors

SÅ‚awek Piotrowski, Tomek Piotrowski

Table of Contents

  1. Introduction to Moonshine
  2. Moonshine container basics
  3. Writing Services
    • Simplest service
    • Service lifecycle
    • Guice bindings
    • Dependencies
    • XML parameters
    • Inheritance
    • Custom annotations and interceptors
  4. Configuration files
    • Simple configuration file
    • Service ids
    • Multiple configuration files
    • Properties
  5. Testing your application
    • MoonshineTest class
      • RequestRule
      • MockitoRule
    • @MoonshineConfiguration annotation [from string, configurator]
    • Mocking classes [@MockAndBind, @ResetMocksRule]
    • Mocking services
  6. Bundled services
  7. Common errors