This content has been marked as final.
Show 7 replies
-
1. Re: Injecting KernelControllerContext
alesj Jun 8, 2007 5:24 AM (in response to juha)Currently our annotation support is a bit weak. :-)
But once we get down to it (decide on how to generically handle annotations + impl), this should be a failrly trivial case to handle.
But if you need it really soon, I can push this myself or ask Kabir to prepare some temp AOP based solution. -
2. Re: Injecting KernelControllerContext
juha Jun 8, 2007 5:54 AM (in response to juha)Is this something I might expect to see in AS 5 GA?
-
3. Re: Injecting KernelControllerContext
alesj Jun 8, 2007 6:21 AM (in response to juha)"juha@jboss.org" wrote:
Is this something I might expect to see in AS 5 GA?
Yup.
That's the 'create your own dependency' feature Adrian is talking about. ;-) -
4. Re: Injecting KernelControllerContext
adrian.brock Jun 8, 2007 10:43 AM (in response to juha)I guess this would be an alternative to the KernelControllerContextAware interface?
-
5. Re: Injecting KernelControllerContext
alesj Jun 8, 2007 10:46 AM (in response to juha)"adrian@jboss.org" wrote:
I guess this would be an alternative to the KernelControllerContextAware interface?
Yes.
Or any of the more exact [put State here]KernelControllerContextAware interface. -
6. Re: Injecting KernelControllerContext
alesj Aug 2, 2007 6:00 AM (in response to juha)"juha@jboss.org" wrote:
Can it be done?
e.g. @Inject ControllerContext ctx;
Now you can.
But not on field, on setter. :-)@Inject(fromContext="context") public void setContext(ControllerContext context)
-
7. Re: Injecting KernelControllerContext
juha Aug 3, 2007 8:42 AM (in response to juha)Great, thanks!