[seam-issues] [JBoss JIRA] (SEAMWICKET-43) Introduce simpler way to inject into thrid party instances
Thierry Peng (Commented) (JIRA)
jira-events at lists.jboss.org
Mon Oct 10 06:27:16 EDT 2011
[ https://issues.jboss.org/browse/SEAMWICKET-43?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12633448#comment-12633448 ]
Thierry Peng commented on SEAMWICKET-43:
----------------------------------------
this approach is implemented into the proposed solution of the seam-wicket 41 issue; see https://github.com/caliban/seam-wicket and https://issues.jboss.org/browse/SEAMWICKET-41
> Introduce simpler way to inject into thrid party instances
> ----------------------------------------------------------
>
> Key: SEAMWICKET-43
> URL: https://issues.jboss.org/browse/SEAMWICKET-43
> Project: Seam for Apache Wicket
> Issue Type: Feature Request
> Environment: all
> Reporter: K. Bachl
>
> currently if one needs to habe DI in e.g. a LoadableDetachableModel one needs to do:
> BeanManager manager = new BeanManagerLocator().getBeanManager();
> NonContextual.of(LoadableDetachableDbEntityModel.class, manager).existingInstance(this).inject();
> which is quite verbose. A more short resolution should be baked into wicket-seam, maybe even use wicket's injector holder like this (from JavaEE-inject in wicketstuff):
> InjectorHolder.getInjector().inject(this);
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list