TransformerProvider (Solr 3.6.2 API)
Keywords: org.apache.solr.util.xslt.TransformerProvider class

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.solr.util.xslt
Class TransformerProvider

    java.lang.Object
      org.apache.solr.util.xslt.TransformerProvider

    public class TransformerProvider

extends Object

Singleton that creates a Transformer for the XSLTServletFilter. For now, only caches the last created Transformer, but could evolve to use an LRU cache of Transformers. See http://www.javaworld.com/javaworld/jw-05-2003/jw-0502-xsl_p.html for one possible way of improving caching.

Field Summary
`static TransformerProvider` | `instance`

Method Summary
`Transformer` | `getTransformer(SolrConfig solrConfig, String filename, int cacheLifetimeSeconds)` Return a new Transformer, possibly created from our cached Templates object

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### instance

    public static TransformerProvider instance

Method Detail

### getTransformer

    public Transformer getTransformer(SolrConfig solrConfig,
                                      String filename,
                                      int cacheLifetimeSeconds)
                               throws IOException

  Return a new Transformer, possibly created from our cached Templates object

  Throws:
    `TransformerConfigurationException`
    `IOException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD