Title: set _instance for Singleton Beans in the constructor. · Issue #700 · androidannotations/androidannotations · GitHub
Open Graph Title: set _instance for Singleton Beans in the constructor. · Issue #700 · androidannotations/androidannotations
X Title: set _instance for Singleton Beans in the constructor. · Issue #700 · androidannotations/androidannotations
Description: I found a problem, the following is my attempt to example what I came across, this problem occured because _instance is set after the constructor e.t.c. of the bean has executed. (this code probably wont compile as i am typeing it from m...
Open Graph Description: I found a problem, the following is my attempt to example what I came across, this problem occured because _instance is set after the constructor e.t.c. of the bean has executed. (this code probabl...
X Description: I found a problem, the following is my attempt to example what I came across, this problem occured because _instance is set after the constructor e.t.c. of the bean has executed. (this code probabl...
Opengraph URL: https://github.com/androidannotations/androidannotations/issues/700
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"set _instance for Singleton Beans in the constructor.","articleBody":"I found a problem, the following is my attempt to example what I came across, this problem occured because _instance is set after the constructor e.t.c. of the bean has executed.\n(this code probably wont compile as i am typeing it from my head)..\n\n``` java\n\n@EBean(scope=\"singleton\")\nclass DatabaseHelper\n{\n}\n\n@EBean(scope=\"singleton\")\nclass Worker1\n{\n @Bean\n DatabaseHelper database;\n}\n\n@EBean(scope=\"singleton\")\nclass Worker2\n{\n @Bean\n DatabaseHelper database;\n @Bean\n Worker1 worker1;\n}\n\n@Bean(activity/fragment/whatever)\nclass someotherclass\n{\n @Bean\n Worker2 worker2;\n}\n\n\n```\n\nIn this case, worker2 creates a database helper and worker1\nworker1 will also create a new databasehelper..\n\nIf _instance was set in the constructor to \"this\", then we would only get one instance of databasehelper.\n\n I had a go at making the changes myself, but after making the change, i couldnt compile the source through some error unleated to where i had made changes.\n","author":{"url":"https://github.com/mwinters-stuff","@type":"Person","name":"mwinters-stuff"},"datePublished":"2013-08-21T01:20:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/700/androidannotations/issues/700"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7210d253-e07b-df7d-06ca-2b5f55a25d5f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9B9E:2A38B9:365571:49AE7E:6A61A7A8 |
| html-safe-nonce | c45f858f8c507792d186f38dc2b433a5bee066ac0ffca32bae2b97cbc5bff707 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QjlFOjJBMzhCOTozNjU1NzE6NDlBRTdFOjZBNjFBN0E4IiwidmlzaXRvcl9pZCI6IjgzNjQ5NzQ0OTMyNjY5Nzg3MjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5f2e745391324435d309243f0a78c22761e16197adc9082d4c2d629047c8f168 |
| hovercard-subject-tag | issue:18331355 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/androidannotations/androidannotations/700/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2a0a5a989830a2e60eb0b26cd4326192401bc5b77424c30ecd403cf49fb1627d/androidannotations/androidannotations/issues/700 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2a0a5a989830a2e60eb0b26cd4326192401bc5b77424c30ecd403cf49fb1627d/androidannotations/androidannotations/issues/700 |
| og:image:alt | I found a problem, the following is my attempt to example what I came across, this problem occured because _instance is set after the constructor e.t.c. of the bean has executed. (this code probabl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mwinters-stuff |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6f4633bcf01c1ad14b73fd07dd39ac31d61f3d3c2578ee08ec1792b7b351eeb9 |
| turbo-cache-control | no-preview |
| go-import | github.com/androidannotations/androidannotations git https://github.com/androidannotations/androidannotations.git |
| octolytics-dimension-user_id | 1315313 |
| octolytics-dimension-user_login | androidannotations |
| octolytics-dimension-repository_id | 3116751 |
| octolytics-dimension-repository_nwo | androidannotations/androidannotations |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3116751 |
| octolytics-dimension-repository_network_root_nwo | androidannotations/androidannotations |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ac296ae7f21856f1f92adbad22f870b6fbb4b907 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width