Skip to content

MongoJackModule can't be configured with a custom ObjectMapper in OSGi #202

@rakeshk15

Description

@rakeshk15

Since MongoJackModule is in internal package therefore it is not accessible to register the custom ObjectMapper.

Basically this doesn't work in OSGi

MongoJackModule.configure(myObjectMapper);

One option would be to expose the internal package as well without any code change and this will be fully backward compatible. However, it breaks strong encapsulation which OSGi provides.

Fix/workaround - We just need to add one more package in maven-bundle-plugin

org.mongojack,org.mongojack.internal

if it is ok then I could provide a PR.

Thanks,
Rakesh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions