{"action":"opened","issue":{"url":"https://api.github.com/repos/katharsis-project/katharsis-core/issues/58","labels_url":"https://api.github.com/repos/katharsis-project/katharsis-core/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/katharsis-project/katharsis-core/issues/58/comments","events_url":"https://api.github.com/repos/katharsis-project/katharsis-core/issues/58/events","html_url":"https://github.com/katharsis-project/katharsis-core/issues/58","id":98196883,"number":58,"title":"How to add a custom data store","user":{"login":"nevson","id":12156191,"avatar_url":"https://avatars.githubusercontent.com/u/12156191?v=3","gravatar_id":"","url":"https://api.github.com/users/nevson","html_url":"https://github.com/nevson","followers_url":"https://api.github.com/users/nevson/followers","following_url":"https://api.github.com/users/nevson/following{/other_user}","gists_url":"https://api.github.com/users/nevson/gists{/gist_id}","starred_url":"https://api.github.com/users/nevson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nevson/subscriptions","organizations_url":"https://api.github.com/users/nevson/orgs","repos_url":"https://api.github.com/users/nevson/repos","events_url":"https://api.github.com/users/nevson/events{/privacy}","received_events_url":"https://api.github.com/users/nevson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-30T15:25:53Z","updated_at":"2015-07-30T15:25:53Z","closed_at":null,"body":"Hi, currently I'm trying to add a custom data store to the [jersey-example](https://github.com/katharsis-project/katharsis-examples/tree/master/jersey-example). I've tried to get some inspiration from the dropwizard-mongo-example but somehow I felt a bit lost when having a look on the [DropwizardService.java](https://github.com/katharsis-project/katharsis-examples/blob/master/dropwizard-mongo-example/src/main/java/io/katharsis/example/dropwizard/DropwizardService.java).\r\n\r\nIn the end what I want to achieve is the following:\r\n```java\r\npublic class TaskRepository implements ResourceRepository<Task, ObjectId> {\r\n    private MyDatastore datastore;\r\n\r\n    @Inject\r\n    public TaskRepository(MyDatastoreManager manager) {\r\n        datastore = manager.getDatastore();\r\n    }\r\n    // ...\r\n}\r\n```\r\n\r\nCould you give me some guidance how I can achieve that based on the `jersey-example`? That would be really awesome!"}}