< prev index next >

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

Print this page




  24  */
  25 
  26 package javax.xml.stream;
  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 streams.</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  */
  46 class FactoryFinder {
  47     // Check we have access to package.
  48     private static final String DEFAULT_PACKAGE = "com.sun.xml.internal.";
  49 
  50     /**
  51      * Internal debug flag.
  52      */
  53     private static boolean debug = false;
  54 
  55     /**
  56      * Cache for properties in java.home/conf/jaxp.properties
  57      */
  58     final private static Properties cacheProps = new Properties();
  59 
  60     /**
  61      * Flag indicating if properties from java.home/conf/jaxp.properties
  62      * have been cached.
  63      */
  64     private static volatile boolean firstTime = true;




  24  */
  25 
  26 package javax.xml.stream;
  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 streams.</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     // Check we have access to package.
  48     private static final String DEFAULT_PACKAGE = "com.sun.xml.internal.";
  49 
  50     /**
  51      * Internal debug flag.
  52      */
  53     private static boolean debug = false;
  54 
  55     /**
  56      * Cache for properties in java.home/conf/jaxp.properties
  57      */
  58     final private static Properties cacheProps = new Properties();
  59 
  60     /**
  61      * Flag indicating if properties from java.home/conf/jaxp.properties
  62      * have been cached.
  63      */
  64     private static volatile boolean firstTime = true;


< prev index next >