org.apache.wicket.util.lang
Interface PropertyResolver.IClassCache

Enclosing class:
PropertyResolver

public static interface PropertyResolver.IClassCache

An implementation of the class can be set on the PropertyResolver#setClassCacheCreator(Application, IClassCache) method for a specific application. This class cache can then be a special map with an eviction policy or do nothing if nothing should be cached for the given class. For example if you have proxy classes that are constantly created you could opt for not caching those at all or have a special Map implementation that will evict that class at a certain point.

Author:
jcompagner

Method Summary
 java.lang.Object get(java.lang.Class clz)
          Returns the class map from the cache.
 void put(java.lang.Class clz, java.util.Map values)
          Put the class into the cache, or if that class shouldn't be cached do nothing.
 

Method Detail

put

void put(java.lang.Class clz,
         java.util.Map values)
Put the class into the cache, or if that class shouldn't be cached do nothing.

Parameters:
clz -
values -

get

java.lang.Object get(java.lang.Class clz)
Returns the class map from the cache.

Parameters:
clz -
Returns:
the map of the given class


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.