[JBoss JIRA] (CDI-103) Support client controlled contexts
by Antoine Sabot-Durand (JIRA)
[ https://issues.jboss.org/browse/CDI-103?page=com.atlassian.jira.plugin.sy... ]
Antoine Sabot-Durand updated CDI-103:
-------------------------------------
Fix Version/s: 2.0 (discussion)
(was: TBD)
> Support client controlled contexts
> ----------------------------------
>
> Key: CDI-103
> URL: https://issues.jboss.org/browse/CDI-103
> Project: CDI Specification Issues
> Issue Type: Feature Request
> Components: Contexts
> Reporter: Pete Muir
> Fix For: 2.0 (discussion)
>
>
> In a client controlled context, the client controls via some identifier (probably an identifier, but we should allow the context to inspect the injection point) which contextual instances it sees for a particular bean type. For example given:
> {code}
> @MyScope
> class Foo {
> String name;
> }
> {code}
> and a context which uses annotations to differentiate between contextual instance, these two injection points would see different instances:
> {code}
> @Inject @Bar Foo barFoo;
> @Inject @Baz Foo bazFoo;
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 4 months
[JBoss JIRA] (CDI-89) Add @Unwraps from Seam Solder
by Antoine Sabot-Durand (JIRA)
[ https://issues.jboss.org/browse/CDI-89?page=com.atlassian.jira.plugin.sys... ]
Antoine Sabot-Durand updated CDI-89:
------------------------------------
Fix Version/s: 2.0 (discussion)
(was: TBD)
> Add @Unwraps from Seam Solder
> ------------------------------
>
> Key: CDI-89
> URL: https://issues.jboss.org/browse/CDI-89
> Project: CDI Specification Issues
> Issue Type: Feature Request
> Components: Concepts
> Affects Versions: 1.0
> Reporter: Stuart Douglas
> Assignee: Pete Muir
> Fix For: 2.0 (discussion)
>
>
> @Unwraps allows for an essentially stateless scope for producer methods and fields.
> At injection time a dependent scoped proxy is injected into the injection point. When a methods is invoked on this proxy it calls the corresponding @Unwraps methods to get the instance to invoke the method on.
> Because the proxy is @Dependent scoped, the @Unwraps method can inject the corresponding InjectionPoint.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 4 months
[JBoss JIRA] (CDI-61) Producers and beans that are under construction
by Antoine Sabot-Durand (JIRA)
[ https://issues.jboss.org/browse/CDI-61?page=com.atlassian.jira.plugin.sys... ]
Antoine Sabot-Durand edited comment on CDI-61 at 9/16/14 11:12 AM:
-------------------------------------------------------------------
The only rule for this use case in the spec regarding circularities (http://docs.jboss.org/cdi/spec/1.2/cdi-spec.html#injection_el_resolution)
{quote}
The container is required to support circularities in the bean dependency graph where at least one bean participating in every circular chain of dependencies has a normal scope, as defined in Normal scopes and pseudo-scopes. The container is not required to support circular chains of dependencies where every bean participating in the chain has a pseudo-scope.
{quote}
And yet it's not exactly this use case.
Weld 2.1.x support this use case with a warning while OWB 1.2.6 crash with a stack overflow.
Is there any objection to be explicit and tell that the container doesn't have to support this kind of circularities?
was (Author: antoinesabot-durand):
The only rule for this use case in the spec regarding circularities (http://docs.jboss.org/cdi/spec/1.2/cdi-spec.html#injection_el_resolution)
{quote}
The container is required to support circularities in the bean dependency graph where at least one bean participating in every circular chain of dependencies has a normal scope, as defined in Normal scopes and pseudo-scopes. The container is not required to support circular chains of dependencies where every bean participating in the chain has a pseudo-scope.
{quote}
Weld 2.1.x support this use c
> Producers and beans that are under construction
> -----------------------------------------------
>
> Key: CDI-61
> URL: https://issues.jboss.org/browse/CDI-61
> Project: CDI Specification Issues
> Issue Type: Bug
> Components: Beans
> Affects Versions: 1.0
> Reporter: Pete Muir
> Fix For: 2.0 (discussion)
>
>
> I think we need the spec to say something about cases where an injection point of a bean resolves to a producer method of the same bean. The implementation should detect that this is a definition error. It shouldn't try to call a producer method on a non-fully-initialized bean.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 4 months
[JBoss JIRA] (CDI-61) Producers and beans that are under construction
by Antoine Sabot-Durand (JIRA)
[ https://issues.jboss.org/browse/CDI-61?page=com.atlassian.jira.plugin.sys... ]
Antoine Sabot-Durand commented on CDI-61:
-----------------------------------------
The only rule for this use case in the spec regarding circularities (http://docs.jboss.org/cdi/spec/1.2/cdi-spec.html#injection_el_resolution)
{quote}
The container is required to support circularities in the bean dependency graph where at least one bean participating in every circular chain of dependencies has a normal scope, as defined in Normal scopes and pseudo-scopes. The container is not required to support circular chains of dependencies where every bean participating in the chain has a pseudo-scope.
{quote}
Weld 2.1.x support this use c
> Producers and beans that are under construction
> -----------------------------------------------
>
> Key: CDI-61
> URL: https://issues.jboss.org/browse/CDI-61
> Project: CDI Specification Issues
> Issue Type: Bug
> Components: Beans
> Affects Versions: 1.0
> Reporter: Pete Muir
> Fix For: 2.0 (discussion)
>
>
> I think we need the spec to say something about cases where an injection point of a bean resolves to a producer method of the same bean. The implementation should detect that this is a definition error. It shouldn't try to call a producer method on a non-fully-initialized bean.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 4 months
[JBoss JIRA] (CDI-469) Allow nonbinding producer methods to have scopes
by Arne Limburg (JIRA)
[ https://issues.jboss.org/browse/CDI-469?page=com.atlassian.jira.plugin.sy... ]
Arne Limburg commented on CDI-469:
----------------------------------
Hmm, sounds like the attribute of the qualifier should not be @Nonbinding, but something new like @MultipleInstanceBinding or something like that
> Allow nonbinding producer methods to have scopes
> ------------------------------------------------
>
> Key: CDI-469
> URL: https://issues.jboss.org/browse/CDI-469
> Project: CDI Specification Issues
> Issue Type: Feature Request
> Components: Beans, Contexts
> Affects Versions: 1.2.Final
> Reporter: John Ament
>
> Currently, you cannot have a nonbinding producer method, e.g. one where the annotation is read at runtime, with a scope. This means that repeated injections always happen. It would be better if you could scope the nonbinding producer methods, so that the results were bound, e.g. to a request scope, so that look ups can be done once.
> The current way to avoid this is to use a holder object with the proper scope.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 4 months
[JBoss JIRA] (CDI-61) Producers and beans that are under construction
by Antoine Sabot-Durand (JIRA)
[ https://issues.jboss.org/browse/CDI-61?page=com.atlassian.jira.plugin.sys... ]
Antoine Sabot-Durand updated CDI-61:
------------------------------------
Fix Version/s: 2.0 (discussion)
(was: TBD)
> Producers and beans that are under construction
> -----------------------------------------------
>
> Key: CDI-61
> URL: https://issues.jboss.org/browse/CDI-61
> Project: CDI Specification Issues
> Issue Type: Bug
> Components: Beans
> Affects Versions: 1.0
> Reporter: Pete Muir
> Fix For: 2.0 (discussion)
>
>
> I think we need the spec to say something about cases where an injection point of a bean resolves to a producer method of the same bean. The implementation should detect that this is a definition error. It shouldn't try to call a producer method on a non-fully-initialized bean.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 4 months