no.digipost.jaxb.context.StaticOldJaxb2ContextFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jaxb-resolver-com.sun.xml.bind Show documentation
Show all versions of jaxb-resolver-com.sun.xml.bind Show documentation
Library to enable com.sun.xml.bind JAXB2 implementation operating alongside the newer Jakarta JAXB versions
The newest version!
package no.digipost.jaxb.context;
/*
* Copyright (C) Posten Norge AS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBContextFactory;
import javax.xml.bind.JAXBException;
import java.util.Map;
public class StaticOldJaxb2ContextFactory {
static JAXBContextFactory factory = new OldJaxb2ContextFactory();
public static JAXBContext createContext(Class>[] classesToBeBound, Map properties) throws JAXBException {
return factory.createContext(classesToBeBound, properties);
}
public static JAXBContext createContext(String contextPath, ClassLoader classLoader, Map properties) throws JAXBException {
return factory.createContext(contextPath, classLoader, properties);
}
}