{"action":"opened","issue":{"url":"https://api.github.com/repos/rash805115/bookeeping.rest/issues/6","labels_url":"https://api.github.com/repos/rash805115/bookeeping.rest/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/rash805115/bookeeping.rest/issues/6/comments","events_url":"https://api.github.com/repos/rash805115/bookeeping.rest/issues/6/events","html_url":"https://github.com/rash805115/bookeeping.rest/issues/6","id":66336443,"number":6,"title":"Singleton Instances","user":{"login":"rash805115","id":4465074,"avatar_url":"https://avatars.githubusercontent.com/u/4465074?v=3","gravatar_id":"","url":"https://api.github.com/users/rash805115","html_url":"https://github.com/rash805115","followers_url":"https://api.github.com/users/rash805115/followers","following_url":"https://api.github.com/users/rash805115/following{/other_user}","gists_url":"https://api.github.com/users/rash805115/gists{/gist_id}","starred_url":"https://api.github.com/users/rash805115/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rash805115/subscriptions","organizations_url":"https://api.github.com/users/rash805115/orgs","repos_url":"https://api.github.com/users/rash805115/repos","events_url":"https://api.github.com/users/rash805115/events{/privacy}","received_events_url":"https://api.github.com/users/rash805115/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rash805115/bookeeping.rest/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-04T16:08:33Z","updated_at":"2015-04-04T16:08:33Z","closed_at":null,"body":"I made a mistake by making all the classes inside bookeeping.rest.service.database. This means that there will always be just one object. E.g. to create a directory, the same object is shared between multiple users. I have no idea if that would impact performace or not, but even then, the same object is being shared by thousands of users to perform an operation. Different objects is natural and making them singleton makes no sense anyways. I dont know why I did that."}}