devbliss/mongojack — pull request #59 by bertramn (2014-05-31 13:41:13+00:00)
Title: - implemented "hackaround" for issue https://github.com/devbliss/mongoja...

Hi there here is a `MongoJackModule ` wrapper you could put into the mongojack codebase to work around [issue 58] (https://github.com/devbliss/mongojack/issues/58). But as suggested in the issue, I'd strongly suggest to refactor the module into the main package so it can be exported for use in an OSGi container environment.

I also included a simple `ObjectMapperConfigurationFactory` that you can use as a more mainstream approach to configure an ObjectMapper's serialization context. You can then drop the awkward `configure(ObjectMapper objectMapper)` method and module instance variable from the `org.mongojack.internal.MongoJackModule` class. This may help some folks that want to configure their `ObjectMapper` with more than 1 module in a standard fashion. I included a configuration example in the javadocs of the factory.