| 1 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 2 | // Copyright (c) 2018 Saxonica Limited. |
| 3 | // This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. |
| 4 | // If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. |
| 5 | // This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0. |
| 6 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 7 | |
| 8 | package net.sf.saxon; |
| 9 | |
| 10 | import net.sf.saxon.jaxp.SaxonTransformerFactory; |
| 11 | |
| 12 | |
| 13 | /** |
| 14 | * A TransformerFactory instance can be used to create Transformer and Template |
| 15 | * objects. |
| 16 | * <p>This implementation of the JAXP TransformerFactory interface provides Saxon-HE, |
| 17 | * Saxon-PE, or Saxon-EE capability, depending on what software has been loaded from |
| 18 | * the classpath, and what license key is available.</p> |
| 19 | * <p>An application that explicitly wants Saxon-HE, Saxon-PE, or Saxon-EE capability |
| 20 | * regardless of what is available at run-time should instantiate <code>BasicTransformerFactory</code>, |
| 21 | * <code>ProfessionalTransformerFactory</code>, or <code>EnterpriseTransformerFactory</code> |
| 22 | * as appropriate.</p> |
| 23 | * <p>The system property that determines which Factory implementation |
| 24 | * to create is named "javax.xml.transform.TransformerFactory". This |
| 25 | * property names a concrete subclass of the TransformerFactory abstract |
| 26 | * class. If the property is not defined, a platform default is be used.</p> |
| 27 | * <p>This implementation class implements the abstract methods on both the |
| 28 | * javax.xml.transform.TransformerFactory and javax.xml.transform.sax.SAXTransformerFactory |
| 29 | * classes.</p> |
| 30 | * <p>Since Saxon 9.6, the JAXP transformation interface is re-implemented as a layer |
| 31 | * on top of the s9api interface. This will affect applications that attempt to |
| 32 | * down-cast from JAXP interfaces to the underlying implementation classes.</p> |
| 33 | * <p>This class is Saxon's "public" implementation of the TransformerFactory |
| 34 | * interface. It is a trivial subclass of the internal class |
| 35 | * {@link net.sf.saxon.jaxp.SaxonTransformerFactory}, which is in a separate package |
| 36 | * along with the implementation classes to which it has protected access.</p> |
| 37 | */ |
| 38 | |
| 39 | public class TransformerFactoryImpl extends SaxonTransformerFactory { |
| 40 | |
| 41 | public TransformerFactoryImpl() { |
| 42 | super(); |
| 43 | } |
| 44 | |
| 45 | public TransformerFactoryImpl(Configuration config) { |
| 46 | super(config); |
| 47 | } |
| 48 | |
| 49 | } |
| 50 |