24 */
25
26 package javax.xml.validation;
27
28 import java.io.File;
29 import java.lang.reflect.InvocationTargetException;
30 import java.lang.reflect.Method;
31 import java.lang.reflect.Modifier;
32 import java.security.AccessControlContext;
33 import java.security.AccessController;
34 import java.security.PrivilegedAction;
35 import java.util.Properties;
36 import java.util.ServiceConfigurationError;
37 import java.util.ServiceLoader;
38 import java.util.function.Supplier;
39 import jdk.xml.internal.SecuritySupport;
40
41 /**
42 * Implementation of {@link SchemaFactory#newInstance(String)}.
43 *
44 * @author <a href="Kohsuke.Kawaguchi@Sun.com">Kohsuke Kawaguchi</a>
45 * @since 1.5
46 */
47 class SchemaFactoryFinder {
48
49 /** debug support code. */
50 private static boolean debug = false;
51
52 private static final String DEFAULT_PACKAGE = "com.sun.org.apache.xerces.internal";
53 /**
54 * <p>Cache properties for performance.</p>
55 */
56 private static final Properties cacheProps = new Properties();
57
58 /**
59 * <p>First time requires initialization overhead.</p>
60 */
61 private static volatile boolean firstTime = true;
62
63 static {
64 // Use try/catch block to support applets
|
24 */
25
26 package javax.xml.validation;
27
28 import java.io.File;
29 import java.lang.reflect.InvocationTargetException;
30 import java.lang.reflect.Method;
31 import java.lang.reflect.Modifier;
32 import java.security.AccessControlContext;
33 import java.security.AccessController;
34 import java.security.PrivilegedAction;
35 import java.util.Properties;
36 import java.util.ServiceConfigurationError;
37 import java.util.ServiceLoader;
38 import java.util.function.Supplier;
39 import jdk.xml.internal.SecuritySupport;
40
41 /**
42 * Implementation of {@link SchemaFactory#newInstance(String)}.
43 *
44 * @author Kohsuke Kawaguchi
45 * @since 1.5
46 */
47 class SchemaFactoryFinder {
48
49 /** debug support code. */
50 private static boolean debug = false;
51
52 private static final String DEFAULT_PACKAGE = "com.sun.org.apache.xerces.internal";
53 /**
54 * <p>Cache properties for performance.</p>
55 */
56 private static final Properties cacheProps = new Properties();
57
58 /**
59 * <p>First time requires initialization overhead.</p>
60 */
61 private static volatile boolean firstTime = true;
62
63 static {
64 // Use try/catch block to support applets
|