[seam-issues] [JBoss JIRA] Created: (SEAMWICKET-43) Introduce simpler way to inject into thrid party instances

K. Bachl (JIRA) jira-events at lists.jboss.org
Mon Oct 3 05:01:26 EDT 2011


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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the seam-issues mailing list