[
https://issues.apache.org/jira/browse/DELTASPIKE-582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=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)