ClassLoader cl = ss.getContextClassLoader(); if (cl != null) { is = ss.getResourceAsStream(cl, serviceId); is = ss.getResourceAsStream(cl, serviceId); is = ss.getResourceAsStream(cl, serviceId);
ClassLoader classLoader = SecuritySupport.getContextClassLoader(); String systemProp = SecuritySupport.getSystemProperty(factoryId); if( systemProp!=null) { if (debug) dPrint("found system property, value=" + systemProp); String javah = SecuritySupport.getSystemProperty("java.home"); String configFile = javah + File.separator + "lib" + File.separator + "jaxp.properties"; File f=new File( configFile ); firstTime = false; if(SecuritySupport.doesFileExist(f)){ if (debug) dPrint("Read properties file "+f); cacheProps.load(SecuritySupport.getFileInputStream(f));
String systemProp = ss.getSystemProperty(factoryId); if (systemProp != null) { dPrint("found system property, value=" + systemProp); synchronized (cacheProps) { if (firstTime) { String configFile = ss.getSystemProperty("java.home") + File.separator + "lib" + File.separator + "jaxp.properties"; File f = new File(configFile); firstTime = false; if (ss.doesFileExist(f)) { dPrint("Read properties file "+f); cacheProps.load(ss.getFileInputStream(f));
cl = ss.getContextClassLoader(); if (cl == null) { throw new ClassNotFoundException();
/** * @return A new instance of a SAXParserFactory. * * @exception FactoryConfigurationError if the implementation is * not available or cannot be instantiated. */ public static SAXParserFactory newInstance(String factoryClassName, ClassLoader classLoader) { if (factoryClassName == null) { throw new FactoryConfigurationError("factoryClassName cannot be null."); } if (classLoader == null) { classLoader = SecuritySupport.getContextClassLoader(); } try { return (SAXParserFactory) FactoryFinder.newInstance(factoryClassName, classLoader, false); } catch (FactoryFinder.ConfigurationError e) { throw new FactoryConfigurationError(e.getException(), e.getMessage()); } }
ClassLoader cl = SecuritySupport.getContextClassLoader(); if (cl != null) { is = SecuritySupport.getResourceAsStream(cl, serviceId); cl = ClassLoader.getSystemClassLoader(); is = SecuritySupport.getResourceAsStream(cl, serviceId); cl = ClassLoader.getSystemClassLoader(); is = SecuritySupport.getResourceAsStream(cl, serviceId);
/** * @return New instance of a <code>DocumentBuilderFactory</code> * * @exception FactoryConfigurationError if the implementation is not * available or cannot be instantiated. */ public static DocumentBuilderFactory newInstance(String factoryClassName, ClassLoader classLoader) { if (factoryClassName == null) { throw new FactoryConfigurationError("factoryClassName cannot be null."); } if (classLoader == null) { classLoader = SecuritySupport.getContextClassLoader(); } try { return (DocumentBuilderFactory) FactoryFinder.newInstance(factoryClassName, classLoader, false); } catch (FactoryFinder.ConfigurationError e) { throw new FactoryConfigurationError(e.getException(), e.getMessage()); } }