Added this to remove all keys regardless of the component

/**
         * Remove every key from cache regardless of the component
         * @param key the resource key
         */
        public void clearCachedKeys(final String key){
                if( cache == null ) return;
                Iterator<Entry<String,String>> iter = 
cache.entrySet().iterator();
                while( iter.hasNext()){
                        String[] splitKey = iter.next().getKey().split( "-" );
                        if( splitKey[0].equals( key )){
                                iter.remove();
                        }
                }
        }
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Clear-cached-key-Localizer-tp2713550p2714650.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to