Title: @RootContext vs @App in an @EBean · Issue #397 · androidannotations/androidannotations · GitHub
Open Graph Title: @RootContext vs @App in an @EBean · Issue #397 · androidannotations/androidannotations
X Title: @RootContext vs @App in an @EBean · Issue #397 · androidannotations/androidannotations
Description: When injecting a DEFAULT scoped Bean (D) in a SINGLETON scoped bean (S), the Context passed to D_.getinstance is already the Instance of the main Application. Therefore injecting @App results in the Application object being null since th...
Open Graph Description: When injecting a DEFAULT scoped Bean (D) in a SINGLETON scoped bean (S), the Context passed to D_.getinstance is already the Instance of the main Application. Therefore injecting @App results in th...
X Description: When injecting a DEFAULT scoped Bean (D) in a SINGLETON scoped bean (S), the Context passed to D_.getinstance is already the Instance of the main Application. Therefore injecting @App results in th...
Opengraph URL: https://github.com/androidannotations/androidannotations/issues/397
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"@RootContext vs @App in an @EBean","articleBody":"When injecting a DEFAULT scoped Bean (D) in a SINGLETON scoped bean (S), the Context passed to `D_.getinstance` is already the Instance of the main Application.\n\nTherefore injecting `@App` results in the Application object being `null` since the `context instanceof Activity` check fails.\n\nThere should be another if case where `context instanceof MyApplication` is checked to prevent this.\n\nAndroidAnnotations Version is 2.7 \n","author":{"url":"https://github.com/dkunzler","@type":"Person","name":"dkunzler"},"datePublished":"2012-11-14T11:30:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/397/androidannotations/issues/397"}
| 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:93890ed9-ec8d-57a0-20c2-da3d92b291f6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8B18:E7B0B:20D2E8F:2FB4CBB:6A60B2DD |
| html-safe-nonce | 6361b8c068341963e7b5523a2e9768a404a21e4aab399554064a68fe86f95364 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QjE4OkU3QjBCOjIwRDJFOEY6MkZCNENCQjo2QTYwQjJERCIsInZpc2l0b3JfaWQiOiI4MDg0MTg2MTEwMDI4MTk4NjIxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9c15601e2b2942b2e8117a1922854ecca7f4d78d9856dd579f1ebafb5a17529d |
| hovercard-subject-tag | issue:8351424 |
| 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/397/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8ec0cffae08bcf18f2cd3d085429ccab62abd47837da8b5b717d1e0cd1c4cb48/androidannotations/androidannotations/issues/397 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8ec0cffae08bcf18f2cd3d085429ccab62abd47837da8b5b717d1e0cd1c4cb48/androidannotations/androidannotations/issues/397 |
| og:image:alt | When injecting a DEFAULT scoped Bean (D) in a SINGLETON scoped bean (S), the Context passed to D_.getinstance is already the Instance of the main Application. Therefore injecting @App results in th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dkunzler |
| hostname | github.com |
| expected-hostname | github.com |
| None | 35671f8a6946a7a2a81d51ae49f5465bdc5f925c23c9cb839206b24345dbe8d9 |
| 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 | 746dc49090e6e3995bb502dce0f8807393e36eda |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width