22 */ |
22 */ |
23 |
23 |
24 package com.sun.org.apache.xml.internal.resolver; |
24 package com.sun.org.apache.xml.internal.resolver; |
25 |
25 |
26 import com.sun.org.apache.xerces.internal.utils.SecuritySupport; |
26 import com.sun.org.apache.xerces.internal.utils.SecuritySupport; |
|
27 import com.sun.org.apache.xml.internal.resolver.helpers.BootstrapResolver; |
|
28 import com.sun.org.apache.xml.internal.resolver.helpers.Debug; |
27 import java.io.InputStream; |
29 import java.io.InputStream; |
28 |
30 import java.net.MalformedURLException; |
29 import java.net.URL; |
31 import java.net.URL; |
30 import java.net.MalformedURLException; |
|
31 |
|
32 import java.util.MissingResourceException; |
32 import java.util.MissingResourceException; |
33 import java.util.PropertyResourceBundle; |
33 import java.util.PropertyResourceBundle; |
34 import java.util.ResourceBundle; |
34 import java.util.ResourceBundle; |
35 import java.util.StringTokenizer; |
35 import java.util.StringTokenizer; |
36 import java.util.Vector; |
36 import java.util.Vector; |
37 |
37 import sun.reflect.misc.ReflectUtil; |
38 import com.sun.org.apache.xml.internal.resolver.helpers.Debug; |
|
39 import com.sun.org.apache.xml.internal.resolver.helpers.BootstrapResolver; |
|
40 import com.sun.org.apache.xml.internal.resolver.Catalog; |
|
41 |
38 |
42 /** |
39 /** |
43 * CatalogManager provides an interface to the catalog properties. |
40 * CatalogManager provides an interface to the catalog properties. |
44 * |
41 * |
45 * <p>Properties can come from two places: from system properties or |
42 * <p>Properties can come from two places: from system properties or |
685 |
682 |
686 if (catalogClassName == null) { |
683 if (catalogClassName == null) { |
687 catalog = new Catalog(); |
684 catalog = new Catalog(); |
688 } else { |
685 } else { |
689 try { |
686 try { |
690 catalog = (Catalog) Class.forName(catalogClassName).newInstance(); |
687 catalog = (Catalog) ReflectUtil.forName(catalogClassName).newInstance(); |
691 } catch (ClassNotFoundException cnfe) { |
688 } catch (ClassNotFoundException cnfe) { |
692 debug.message(1,"Catalog class named '" |
689 debug.message(1,"Catalog class named '" |
693 + catalogClassName |
690 + catalogClassName |
694 + "' could not be found. Using default."); |
691 + "' could not be found. Using default."); |
695 catalog = new Catalog(); |
692 catalog = new Catalog(); |