blob: b23b589cf4373d6e593a88dd8f551a2424799c3e [file] [log] [blame]
/*
* Copyright (c) 2015, 2018 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.legacy;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;
import javax.xml.bind.Unmarshaller;
import javax.xml.bind.Validator;
import java.util.Map;
/**
* Valid JAXBContext factory class for tests
* - contains required static methods and creates dummy JAXBContext
*/
public class Valid {
public static JAXBContext createContext(java.lang.String path, java.lang.ClassLoader cl) {
return new JAXBContext1();
}
public static JAXBContext createContext(Class[] classes, Map<String, Object> 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;
}
@Override
public Validator createValidator() throws JAXBException {
return null;
}
}
}