22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package javax.xml.xpath;
27
28 import com.sun.org.apache.xpath.internal.jaxp.XPathFactoryImpl;
29 import java.io.File;
30 import java.net.URL;
31 import java.security.AccessControlContext;
32 import java.security.AccessController;
33 import java.security.PrivilegedAction;
34 import java.util.Properties;
35 import java.util.ServiceConfigurationError;
36 import java.util.ServiceLoader;
37
38 /**
39 * Implementation of {@link XPathFactory#newInstance(String)}.
40 *
41 * @author <a href="Kohsuke.Kawaguchi@Sun.com">Kohsuke Kawaguchi</a>
42 * @version $Revision: 1.7 $, $Date: 2010-11-01 04:36:14 $
43 * @since 1.5
44 */
45 class XPathFactoryFinder {
46 private static final String DEFAULT_PACKAGE = "com.sun.org.apache.xpath.internal";
47
48 private static final SecuritySupport ss = new SecuritySupport() ;
49 /** debug support code. */
50 private static boolean debug = false;
51 static {
52 // Use try/catch block to support applets
53 try {
54 debug = ss.getSystemProperty("jaxp.debug") != null;
55 } catch (Exception unused) {
56 debug = false;
57 }
58 }
59
60 /**
61 * <p>Cache properties for performance.</p>
62 */
|
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package javax.xml.xpath;
27
28 import com.sun.org.apache.xpath.internal.jaxp.XPathFactoryImpl;
29 import java.io.File;
30 import java.net.URL;
31 import java.security.AccessControlContext;
32 import java.security.AccessController;
33 import java.security.PrivilegedAction;
34 import java.util.Properties;
35 import java.util.ServiceConfigurationError;
36 import java.util.ServiceLoader;
37
38 /**
39 * Implementation of {@link XPathFactory#newInstance(String)}.
40 *
41 * @author <a href="Kohsuke.Kawaguchi@Sun.com">Kohsuke Kawaguchi</a>
42 * @since 1.5
43 */
44 class XPathFactoryFinder {
45 private static final String DEFAULT_PACKAGE = "com.sun.org.apache.xpath.internal";
46
47 private static final SecuritySupport ss = new SecuritySupport() ;
48 /** debug support code. */
49 private static boolean debug = false;
50 static {
51 // Use try/catch block to support applets
52 try {
53 debug = ss.getSystemProperty("jaxp.debug") != null;
54 } catch (Exception unused) {
55 debug = false;
56 }
57 }
58
59 /**
60 * <p>Cache properties for performance.</p>
61 */
|