< prev index next >

src/java.xml/share/classes/javax/xml/parsers/FactoryFinder.java

Print this page




  24  */
  25 
  26 package javax.xml.parsers;
  27 
  28 import java.io.File;
  29 import java.security.AccessController;
  30 import java.security.PrivilegedAction;
  31 import java.util.Iterator;
  32 import java.util.Properties;
  33 import java.util.ServiceConfigurationError;
  34 import java.util.ServiceLoader;
  35 import java.util.function.Supplier;
  36 import jdk.xml.internal.SecuritySupport;
  37 
  38 /**
  39  * <p>Implements pluggable Parsers.</p>
  40  *
  41  * <p>This class is duplicated for each JAXP subpackage so keep it in
  42  * sync.  It is package private for secure class loading.</p>
  43  *
  44  * @author Santiago.PericasGeertsen@sun.com
  45  * @author Huizhe.Wang@oracle.com
  46  */
  47 class FactoryFinder {
  48     private static final String DEFAULT_PACKAGE = "com.sun.org.apache.xerces.internal";
  49     /**
  50      * Internal debug flag.
  51      */
  52     private static boolean debug = false;
  53 
  54     /**
  55      * Cache for properties in java.home/conf/jaxp.properties
  56      */
  57     private static final Properties cacheProps = new Properties();
  58 
  59     /**
  60      * Flag indicating if properties from java.home/conf/jaxp.properties
  61      * have been cached.
  62      */
  63     static volatile boolean firstTime = true;
  64 
  65     // Define system property "jaxp.debug" to get output




  24  */
  25 
  26 package javax.xml.parsers;
  27 
  28 import java.io.File;
  29 import java.security.AccessController;
  30 import java.security.PrivilegedAction;
  31 import java.util.Iterator;
  32 import java.util.Properties;
  33 import java.util.ServiceConfigurationError;
  34 import java.util.ServiceLoader;
  35 import java.util.function.Supplier;
  36 import jdk.xml.internal.SecuritySupport;
  37 
  38 /**
  39  * <p>Implements pluggable Parsers.</p>
  40  *
  41  * <p>This class is duplicated for each JAXP subpackage so keep it in
  42  * sync.  It is package private for secure class loading.</p>
  43  *
  44  * @author Santiago PericasGeertsen

  45  */
  46 class FactoryFinder {
  47     private static final String DEFAULT_PACKAGE = "com.sun.org.apache.xerces.internal";
  48     /**
  49      * Internal debug flag.
  50      */
  51     private static boolean debug = false;
  52 
  53     /**
  54      * Cache for properties in java.home/conf/jaxp.properties
  55      */
  56     private static final Properties cacheProps = new Properties();
  57 
  58     /**
  59      * Flag indicating if properties from java.home/conf/jaxp.properties
  60      * have been cached.
  61      */
  62     static volatile boolean firstTime = true;
  63 
  64     // Define system property "jaxp.debug" to get output


< prev index next >