summaryrefslogtreecommitdiffstats
path: root/container-core/src/main/java/com/yahoo/container/xml/providers/TransformerFactoryProvider.java
blob: 974d2e6a2594baae59c97f33fc22f019adb1ac3c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.container.xml.providers;

import com.yahoo.container.di.componentgraph.Provider;

import javax.xml.transform.TransformerFactory;

/**
 * @author Einar M R Rosenvinge
 * @deprecated Do not use!
 */
@Deprecated
public class TransformerFactoryProvider implements Provider<TransformerFactory> {

    public static final String FACTORY_CLASS = "com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl";

    @Override
    public TransformerFactory get() {
        return TransformerFactory.newInstance(FACTORY_CLASS, this.getClass().getClassLoader());
    }

    @Override
    public void deconstruct() { }

}