[
https://issues.apache.org/jira/browse/WICKET-2980?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Grigorov resolved WICKET-2980.
-------------------------------------
Resolution: Not A Problem
I'm not sure that I understand you.
org.apache.wicket.injection.Injector#cache caches all fields per class, not the
fields' values. This caching saves some CPU cycles to introspect the class
again and again.
The field's value comes from the IFieldValueFactory, so it is up to its
implementation to lookup it properly.
Please re-open if I'm not correct.
> Ability to disable new IOC caching
> ----------------------------------
>
> Key: WICKET-2980
> URL: https://issues.apache.org/jira/browse/WICKET-2980
> Project: Wicket
> Issue Type: Wish
> Affects Versions: 1.5-M1
> Reporter: Major Peter
> Assignee: Martin Grigorov
>
> For example JavaEE Inject supports stateful session beans, which are binded
> to HttpSession's, since they need to be different for different users. With
> the currently available inject(Object, IFieldValueFactory) implementation
> there is no way to disable this caching, and so, everyone would use the same
> stateful bean.
> A workaround would be to implement an own inject(Object, IFieldValueFactory)
> without the caching, but that would be an ugly copy-paste solution.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.