blob: ffce364941948bf8365289e85c89e0fcc9682af6 (
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
26
27
28
|
// 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.datatype.DatatypeConfigurationException;
import javax.xml.datatype.DatatypeFactory;
/**
* @author Einar M R Rosenvinge
* @deprecated Do not use!
*/
@Deprecated
public class DatatypeFactoryProvider implements Provider<DatatypeFactory> {
public static final String FACTORY_CLASS = DatatypeFactory.DATATYPEFACTORY_IMPLEMENTATION_CLASS;
@Override
public DatatypeFactory get() {
try {
return DatatypeFactory.newInstance(FACTORY_CLASS, this.getClass().getClassLoader());
} catch (DatatypeConfigurationException e) {
throw new IllegalStateException(e);
}
}
@Override
public void deconstruct() { }
}
|