blob: db67496b4820ed722f71ecb0c7eb5bf41b73c8c1 [file] [log] [blame]
/*
* Copyright (c) 2015, 2021 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
package jaxb.factory.spi;
import jakarta.xml.bind.JAXBContext;
import jakarta.xml.bind.JAXBContextFactory;
import jakarta.xml.bind.JAXBException;
import jakarta.xml.bind.Marshaller;
import jakarta.xml.bind.Unmarshaller;
import java.util.Map;
/**
* Created by miran on 10/11/14.
*/
public class Valid3 implements JAXBContextFactory {
@Override
public JAXBContext createContext(Class<?>[] classesToBeBound, Map<String, ?> properties) throws JAXBException {
return new JAXBContext1();
}
@Override
public JAXBContext createContext(String contextPath, ClassLoader classLoader, Map<String, ?> properties) throws JAXBException {
return new JAXBContext1();
}
public static class JAXBContext1 extends JAXBContext {
@Override
public Unmarshaller createUnmarshaller() throws JAXBException {
return null;
}
@Override
public Marshaller createMarshaller() throws JAXBException {
return null;
}
}
}