Use evo-config 1.1

Change-Id: I40b455893c87d28c93160a15fcb0bbb29db0fc06
Reviewed-on: https://pirx.atteo.com/gerrit/359
Tested-by: Mr. Jenkins
Reviewed-by: Sławek Piotrowski <sentinel@atteo.com>
Disable H2 database shutdown hook

Change-Id: I145dd4803152c0a1a976e803ac5f2efb1ef4e656
Refs: #56
Reviewed-on: https://pirx.atteo.com/gerrit/363
Tested-by: Mr. Jenkins
Reviewed-by: Tomek Piotrowski <tomek.piotrowski@atteo.com>
Rename @ImportBindings into @ImportService

1. rename
2. slightly changed semantics: field marked with @ImportService is filled
   with default service (the one without id) before configure() is called

Change-Id: I5108926a806b6495e344d057f7f89bcbe38dd5b0
Reviewed-on: https://pirx.atteo.com/gerrit/364
Tested-by: Mr. Jenkins
Reviewed-by: Tomek Piotrowski <tomek.piotrowski@atteo.com>
Honor @MoonshineConfiguration on parent class

When test class extends some parent class we also check
for @MoonshineConfiguration annotation on parent class and merge
any configuration specified there.

Change-Id: Ib9b87dbd88fcfb56783dc6dc72c29fd9eff63f8f
Reviewed-on: https://pirx.atteo.com/gerrit/386
Tested-by: Mr. Jenkins
Reviewed-by: Tomek Piotrowski <tomek.piotrowski@atteo.com>
Honor @ImportService in parent class

Change-Id: I70e07acfaf24b6d87ccd139fb663378d9b0fc1df
Reviewed-on: https://pirx.atteo.com/gerrit/387
Tested-by: Mr. Jenkins
Reviewed-by: Tomek Piotrowski <tomek.piotrowski@atteo.com>
Add database migration support

Change-Id: Ie941a996db66f1d80689b205a60f903492b33d89
Reviewed-on: https://pirx.atteo.com/gerrit/388
Tested-by: Mr. Jenkins
Reviewed-by: Tomek Piotrowski <tomek.piotrowski@atteo.com>
Use new migration support in Database Realm

Change-Id: I441407e71091055319b848dc10029f6bde77e280
Reviewed-on: https://pirx.atteo.com/gerrit/389
Tested-by: Mr. Jenkins
Reviewed-by: Tomek Piotrowski <tomek.piotrowski@atteo.com>
Use '/test-config.xml' only when configurator is not specified

Change-Id: If52ce6ad13daf1a6923b4604a0419144bfe5b5ed
Reviewed-on: https://pirx.atteo.com/gerrit/390
Tested-by: Mr. Jenkins
Reviewed-by: Sławek Piotrowski <sentinel@atteo.com>
Inform when <transactional/> service is missing

Null pointer was thrown when someone used Transaction.require,
without specifying <transactional/> in configuration file.
This change improves error message in this case.

Change-Id: I47ad602e77e827634984b2a0828448af30022fc7
Reviewed-on: https://pirx.atteo.com/gerrit/396
Tested-by: Mr. Jenkins
Reviewed-by: Tomek Piotrowski <tomek.piotrowski@atteo.com>
Throw exception when default service is not found.

Change-Id: Ic3eef1eb7fe5544331841317dafd69cdc327096d
Reviewed-on: https://pirx.atteo.com/gerrit/395
Tested-by: Mr. Jenkins
Reviewed-by: Tomek Piotrowski <tomek.piotrowski@atteo.com>
Check correct @Singleton usage

Change-Id: I0a590b9e8ab92df69a3661d81c858a8a3de3ca5e
Reviewed-on: https://pirx.atteo.com/gerrit/391
Tested-by: Mr. Jenkins
Reviewed-by: Tomek Piotrowski <tomek.piotrowski@atteo.com>
Fix: TransactionScopedEntityManager should be a Singleton

Change-Id: I235c0fafa02e8a8fb4735e060717be44aa0cf722
Reviewed-on: https://pirx.atteo.com/gerrit/403
Reviewed-by: Tomek Piotrowski <tomek.piotrowski@atteo.com>
Tested-by: Mr. Jenkins
Abandon ServletModule, add ServletContainerService

Let's abandon ServletModule, because it does not work with private modules.
Instead we use @ImportService to get access to specific implementation
of ServletContainerService which allows servlet and filter registration.

Change-Id: Ie0fdf0baeed7826c8bdcd03d8fc8fd8c9cbc0167
Reviewed-on: https://pirx.atteo.com/gerrit/400
Tested-by: Mr. Jenkins
Reviewed-by: Tomek Piotrowski <tomek.piotrowski@atteo.com>
Codahale Metrics support

Change-Id: Ic8da7a937dd5f258e2d76f2720f207adfa8d877f
Reviewed-on: https://pirx.atteo.com/gerrit/402
Tested-by: Mr. Jenkins
Reviewed-by: Sławek Piotrowski <sentinel@atteo.com>
Use file database in Moonshine

In-memory database triggers some problems sometimes

Change-Id: I6c37c4f655f43649e695244a8db862d96c6522f0
Reviewed-on: https://pirx.atteo.com/gerrit/406
Reviewed-by: Tomek Piotrowski <tomek.piotrowski@atteo.com>
Tested-by: Mr. Jenkins
Fix: Service.close() was not called on injector creation errors

Change-Id: If20afe9b282541b96f9a09546727b0191d5acda1
Reviewed-on: https://pirx.atteo.com/gerrit/407
Tested-by: Mr. Jenkins
Reviewed-by: Tomek Piotrowski <tomek.piotrowski@atteo.com>