[jira] [Commented] (DELTASPIKE-582) BeanProvider produces 2 instances of the object java se
[ https://issues.apache.org/jira/browse/DELTASPIKE-582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13986548#comment-13986548 ] Barbier commented on DELTASPIKE-582: Ok, I've tried to re-design my application in order to to have it compliant to your comment but this is not working. @Inject with @ApplicationScopped and without beanProvider does not provide my app with objects instances. Furthermore, I re-read the meaning and definitions of the annotations used in CDI and it is said that @ApplicationScopped is only a web scope and not a desktop app scope. Maybe have I to use only classes and not annotations to be able to use CDI in my app but in this case it sounds more logical to use a factory or something like that. I wanted to use CDI to avoid the factory. BeanProvider produces 2 instances of the object java se --- Key: DELTASPIKE-582 URL: https://issues.apache.org/jira/browse/DELTASPIKE-582 Project: DeltaSpike Issue Type: Bug Components: CdiControl Affects Versions: 0.6 Environment: linux ubunutu, eclipse kepler, maven config, open web beans Reporter: Barbier Attachments: office.data.zip, office.service.zip, office.ui.fx.debug.zip, office.ui.fx.zip the injection process with the following code produces 2 instances of the object LoginModel model = BeanProvider.getContextualReference( ILoginModel.class ); -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Commented] (DELTASPIKE-582) BeanProvider produces 2 instances of the object java se
[ https://issues.apache.org/jira/browse/DELTASPIKE-582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13985244#comment-13985244 ] Karl Kildén commented on DELTASPIKE-582: I tried your sample. @ApplicationScoped worked very well for me. But for LoginView you need to use composition instead of inheritance because of final methods. Try to not mix BeanProvider.getContextual and @Inject in the same class, rather perhaps if (my contextual == null) BeanProvider.injectFields(this) Exact syntax is easy to find on the BeanProvider. To summerize, use @ApplicationScoped in a desktop app (imo) BeanProvider produces 2 instances of the object java se --- Key: DELTASPIKE-582 URL: https://issues.apache.org/jira/browse/DELTASPIKE-582 Project: DeltaSpike Issue Type: Bug Components: CdiControl Affects Versions: 0.6 Environment: linux ubunutu, eclipse kepler, maven config, open web beans Reporter: Barbier Labels: BeanProvider Attachments: office.data.zip, office.service.zip, office.ui.fx.debug.zip, office.ui.fx.zip the injection process with the following code produces 2 instances of the object LoginModel model = BeanProvider.getContextualReference( ILoginModel.class ); -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Commented] (DELTASPIKE-582) BeanProvider produces 2 instances of the object java se
[ https://issues.apache.org/jira/browse/DELTASPIKE-582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13983307#comment-13983307 ] Karl Kildén commented on DELTASPIKE-582: Barbier thank you for the demo. However it did not compile. Please combine it to one project instead and remove all irrelevant dependencies. Add a test.txt telling me what to look for when I run and debug it (only if not obvious like a stacktrace) BeanProvider produces 2 instances of the object java se --- Key: DELTASPIKE-582 URL: https://issues.apache.org/jira/browse/DELTASPIKE-582 Project: DeltaSpike Issue Type: Bug Components: CdiControl Affects Versions: 0.6 Environment: linux ubunutu, eclipse kepler, maven config, open web beans Reporter: Barbier Labels: BeanProvider Attachments: office.data.zip, office.service.zip, office.ui.fx.zip the injection process with the following code produces 2 instances of the object LoginModel model = BeanProvider.getContextualReference( ILoginModel.class ); -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Commented] (DELTASPIKE-582) BeanProvider produces 2 instances of the object java se
[ https://issues.apache.org/jira/browse/DELTASPIKE-582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13982257#comment-13982257 ] Barbier commented on DELTASPIKE-582: Please let me know how I can provide you with the sources that show this issue. I can't find any way to attach them. Regards, Didier BeanProvider produces 2 instances of the object java se --- Key: DELTASPIKE-582 URL: https://issues.apache.org/jira/browse/DELTASPIKE-582 Project: DeltaSpike Issue Type: Bug Components: CdiControl Affects Versions: 0.6 Environment: linux ubunutu, eclipse kepler, maven config, open web beans Reporter: Barbier Labels: BeanProvider the injection process with the following code produces 2 instances of the object LoginModel model = BeanProvider.getContextualReference( ILoginModel.class ); -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Commented] (DELTASPIKE-582) BeanProvider produces 2 instances of the object java se
[ https://issues.apache.org/jira/browse/DELTASPIKE-582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13982283#comment-13982283 ] Gerhard Petracek commented on DELTASPIKE-582: - you should be allowed to use: more - attach files BeanProvider produces 2 instances of the object java se --- Key: DELTASPIKE-582 URL: https://issues.apache.org/jira/browse/DELTASPIKE-582 Project: DeltaSpike Issue Type: Bug Components: CdiControl Affects Versions: 0.6 Environment: linux ubunutu, eclipse kepler, maven config, open web beans Reporter: Barbier Labels: BeanProvider the injection process with the following code produces 2 instances of the object LoginModel model = BeanProvider.getContextualReference( ILoginModel.class ); -- This message was sent by Atlassian JIRA (v6.2#6252)