Class BeanHelperCache
- java.lang.Object
-
- de.knightsoftnet.validators.rebind.BeanHelperCache
-
public class BeanHelperCache extends Object
A cache and factory for BeanHelpers. There should be one BeanHelperCache per compilation run.(public for tests)
-
-
Constructor Summary
Constructors Constructor Description BeanHelperCache()Creates a cache.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clears the cache.BeanHelpercreateHelper(Class<?> clazz, com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.GeneratorContext context)Creates a BeanHelper and writes an interface containing its instance.
-
-
-
Method Detail
-
clear
public void clear()
Clears the cache. (Public for testing.)
-
createHelper
public BeanHelper createHelper(Class<?> clazz, com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.GeneratorContext context) throws com.google.gwt.core.ext.UnableToCompleteException
Creates a BeanHelper and writes an interface containing its instance. Also, recursively creates any BeanHelpers on its constrained properties. (Public for testing.)- Parameters:
clazz- class typelogger- tree logger to usecontext- generator context- Returns:
- bean helper instance
- Throws:
com.google.gwt.core.ext.UnableToCompleteException- if generation can not be done
-
-