Debian Codegraph @

net/sf/saxon/BasicTransformerFactory.java

raw symbols SCIP
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 always
17 * creates a Saxon configuration with Saxon-HE capability, even if Saxon-PE or
18 * Saxon-EE are loaded from the classpath; no attempt is made to look for a license
19 * file. This is therefore the recommended factory to use if you want to be sure
20 * that an application will run successfully under Saxon-HE, and will fail if it attempts to
21 * use Saxon-PE or Saxon-EE facilities.</p>
22 * <p>The system property that determines which Factory implementation
23 * to create is named "javax.xml.transform.TransformerFactory". This
24 * property names a concrete subclass of the TransformerFactory abstract
25 * class. If the property is not defined, a platform default is be used.</p>
26 * <p>This implementation class implements the abstract methods on both the
27 * javax.xml.transform.TransformerFactory and javax.xml.transform.sax.SAXTransformerFactory
28 * classes.</p>
29 * <p>This class is the "public" implementation of the TransformerFactory
30 * interface for Saxon-HE. It is a trivial subclass of the internal class
31 * {@link SaxonTransformerFactory}, which is in a separate package
32 * along with the implementation classes to which it has protected access.</p>
33 * @since 9.8.0.5: see bug 3410
34 */
35
36 public class BasicTransformerFactory extends TransformerFactoryImpl {
37
38 public BasicTransformerFactory() {
39 Configuration config = new Configuration();
40 config.setProcessor(this);
41 setConfiguration(config);
42 }
43
44 public BasicTransformerFactory(Configuration config) {
45 super(config);
46 }
47
48 }
49