You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Major Peter (JIRA)" <ji...@apache.org> on 2010/08/13 01:44:16 UTC

[jira] Created: (WICKET-2980) Ability to disable new IOC caching

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


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.


[jira] Resolved: (WICKET-2980) Ability to disable new IOC caching

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
     [ 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.


[jira] Commented: (WICKET-2980) Ability to disable new IOC caching

Posted by "Major Peter (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-2980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12898680#action_12898680 ] 

Major Peter commented on WICKET-2980:
-------------------------------------

Sorry, I've reread the IOC code, and you're right. This is indeed not an issue. My apologies..

> 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.


[jira] Assigned: (WICKET-2980) Ability to disable new IOC caching

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-2980?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov reassigned WICKET-2980:
---------------------------------------

    Assignee: Martin Grigorov

> 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.