You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Romain Manni-Bucau (Created) (JIRA)" <ji...@apache.org> on 2012/03/19 09:41:40 UTC
[jira] [Created] (DELTASPIKE-121) add a method to inject CDI beans
in a particular instance
add a method to inject CDI beans in a particular instance
---------------------------------------------------------
Key: DELTASPIKE-121
URL: https://issues.apache.org/jira/browse/DELTASPIKE-121
Project: DeltaSpike
Issue Type: New Feature
Reporter: Romain Manni-Bucau
Assignee: Gerhard Petracek
It could be cool to get a method accessible from the CdiContainer to do injections in a particular instance:
cdiContainer.resolveInjections(instance);+
It is particularly nice in unit tests.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (DELTASPIKE-121) add a method to inject CDI beans
in a particular instance
Posted by "Gerhard Petracek (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DELTASPIKE-121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gerhard Petracek updated DELTASPIKE-121:
----------------------------------------
Component/s: Core
that's more a feature for the core e.g. BeanProvider
we can promote the impl. used in https://svn.apache.org/repos/asf/myfaces/extensions/cdi/trunk/core/impl/src/main/java/org/apache/myfaces/extensions/cdi/core/impl/util/CodiUtils.java
> add a method to inject CDI beans in a particular instance
> ---------------------------------------------------------
>
> Key: DELTASPIKE-121
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-121
> Project: DeltaSpike
> Issue Type: New Feature
> Components: Core
> Reporter: Romain Manni-Bucau
> Assignee: Gerhard Petracek
>
> It could be cool to get a method accessible from the CdiContainer to do injections in a particular instance:
> cdiContainer.resolveInjections(instance);+
> It is particularly nice in unit tests.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (DELTASPIKE-121) add a method to inject CDI beans
in a particular instance
Posted by "Gerhard Petracek (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DELTASPIKE-121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gerhard Petracek updated DELTASPIKE-121:
----------------------------------------
Affects Version/s: 0.1-incubating
Fix Version/s: 0.2-incubating
> add a method to inject CDI beans in a particular instance
> ---------------------------------------------------------
>
> Key: DELTASPIKE-121
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-121
> Project: DeltaSpike
> Issue Type: New Feature
> Components: Core
> Affects Versions: 0.1-incubating
> Reporter: Romain Manni-Bucau
> Assignee: Gerhard Petracek
> Fix For: 0.2-incubating
>
>
> It could be cool to get a method accessible from the CdiContainer to do injections in a particular instance:
> cdiContainer.resolveInjections(instance);+
> It is particularly nice in unit tests.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (DELTASPIKE-121) add a method to inject CDI beans
in a particular instance
Posted by "Gerhard Petracek (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DELTASPIKE-121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gerhard Petracek resolved DELTASPIKE-121.
-----------------------------------------
Resolution: Fixed
> add a method to inject CDI beans in a particular instance
> ---------------------------------------------------------
>
> Key: DELTASPIKE-121
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-121
> Project: DeltaSpike
> Issue Type: New Feature
> Components: Core
> Affects Versions: 0.1-incubating
> Reporter: Romain Manni-Bucau
> Assignee: Gerhard Petracek
> Fix For: 0.2-incubating
>
>
> It could be cool to get a method accessible from the CdiContainer to do injections in a particular instance:
> cdiContainer.resolveInjections(instance);+
> It is particularly nice in unit tests.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (DELTASPIKE-121) add a method to inject CDI
beans in a particular instance
Posted by "Mark Struberg (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DELTASPIKE-121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13232509#comment-13232509 ]
Mark Struberg commented on DELTASPIKE-121:
------------------------------------------
+1 for thinking about where to place this.
But please note that just filling the injection points doesn't yet give you a fully working CDI bean.
The filled bean will _not_ have any proxies nor will it's lifecycle be managed by the CDI container. Nothing to worry, but we should document it properly.
> add a method to inject CDI beans in a particular instance
> ---------------------------------------------------------
>
> Key: DELTASPIKE-121
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-121
> Project: DeltaSpike
> Issue Type: New Feature
> Reporter: Romain Manni-Bucau
> Assignee: Gerhard Petracek
>
> It could be cool to get a method accessible from the CdiContainer to do injections in a particular instance:
> cdiContainer.resolveInjections(instance);+
> It is particularly nice in unit tests.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira