< prev index next >

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

Print this page




  24  */
  25 
  26 package javax.xml.datatype;
  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 Datatypes.</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     private static final String DEFAULT_PACKAGE = "com.sun.org.apache.xerces.internal";
  48 
  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 final static Properties cacheProps = new Properties();
  58 
  59     /**
  60      * Flag indicating if properties from java.home/conf/jaxp.properties
  61      * have been cached.
  62      */
  63     private static volatile boolean firstTime = true;
  64 




  24  */
  25 
  26 package javax.xml.datatype;
  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 Datatypes.</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     /**
  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 final static Properties cacheProps = new Properties();
  58 
  59     /**
  60      * Flag indicating if properties from java.home/conf/jaxp.properties
  61      * have been cached.
  62      */
  63     private static volatile boolean firstTime = true;
  64 


< prev index next >