Class UIDLTransformerFactory

Class implementing the UIDLTransformer Factory. The factory creates and maintains a pool of transformers that are used for transforming UIDL to HTML.

Synopsis

Since

3.0

Inheritance Path.  java.lang.Object-> com.itmill.toolkit.terminal.web.UIDLTransformerFactory

UIDLTransformerFactory(ThemeSource, ApplicationServlet, int, long)

Parameters

themeSource

Theme source to be used for themes.

webAdapterServlet

The Adapter servlet.

maxConcurrentTransformers

Maximum number of concurrent themes in use.

cacheTime

Time to cache the transformers.

Constructor for transformer factory. Method UIDLTransformerFactory.

getTransformer(UIDLTransformerType)

Parameters

type

Type of the requested transformer.

variableMap

WebVariable map used by the transformer

return

Created new transformer.

Get new transformer of the specified type

releaseTransformer(UIDLTransformer)

Parameters

transformer

UIDLTransformer to be recycled

Recycle a used transformer back to spool. One must guarantee not to use the transformer after it have been released.