Feature Requests item #1238845, was opened at 2005-07-15 13:49
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=684978&aid=1238845&group_id=119783

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: 1.1
Status: Open
Priority: 5
Submitted By: Matej Knopp (knopp)
Assigned to: Nobody/Anonymous (nobody)
Summary: Introduce a factory for MostRecentlyUsedMap

Initial Comment:
This would allow the user to plug his own
implementation of most recently used map. So the user
cold implement his own stale page policy (including
sticky pages, page priority, etc.) instead of simply
removing the last added pages from page map.

it could something like this.

public Interface IMostRecentlyUsedMapFactory {
    Map createMostRecentlyUsedMap();
}

and the default implementation

public class MostRecentlyUsedMapFactory implements
IMostRecentlyUsedMapFactory {
    Map createMostRecentlyUsedMap() {
       return new MostRecentlyUsedMap
(session.getApplication().getSettings()
                                        .getMaxPages());
    }
}

The factory should be possible to set using
Application.getSettings
().setMostRecentlyUsedMapFactory or something similiar.

This would't affect any current wicket application.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=684978&aid=1238845&group_id=119783


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to