You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Mark Struberg (Commented) (JIRA)" <ji...@apache.org> on 2012/03/19 09:48:02 UTC
[jira] [Commented] (DELTASPIKE-121) add a method to inject CDI
beans in a particular instance
[ 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