blob: 56ce99013c89ce22a25d3dadad2f7bc37c8c18ac [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;
/**
* (Another) Valid JAXBContext factory class for tests
* - contains required static methods and creates dummy JAXBContext
* - several implementations necessary to test different configuration approaches
*/
public class Valid2 {
public static JAXBContext createContext(String path, 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;
}
}
}