Revision 4698
Added by daigle over 15 years ago
SchemaLocationResolver.java | ||
---|---|---|
38 | 38 |
|
39 | 39 |
import org.apache.log4j.Logger; |
40 | 40 |
|
41 |
import edu.ucsb.nceas.metacat.service.ServiceService; |
|
41 | 42 |
import edu.ucsb.nceas.metacat.service.XMLSchemaService; |
42 | 43 |
import edu.ucsb.nceas.metacat.util.SystemUtil; |
43 | 44 |
|
... | ... | |
104 | 105 |
InputStream in = DBEntityResolver.checkURLConnection(schemaLocation); |
105 | 106 |
|
106 | 107 |
String newURLInMetacat = uploadSchemaFromURL(in); |
107 |
XMLSchemaService.getInstance().refresh();
|
|
108 |
ServiceService.refreshService("XMLSchemaService");
|
|
108 | 109 |
|
109 | 110 |
// check the name space list again. It may not have appeared the first time |
110 | 111 |
// because the schema was in the db but there was no file on disk. If that's |
... | ... | |
112 | 113 |
// to register the schema in the database. |
113 | 114 |
if (!XMLSchemaService.getNameSpaceList().contains(nameSpace)) { |
114 | 115 |
registerSchema(newURLInMetacat); |
115 |
XMLSchemaService.getInstance().refresh();
|
|
116 |
ServiceService.refreshService("XMLSchemaService");
|
|
116 | 117 |
} |
117 | 118 |
downloadNewSchema = true; |
118 | 119 |
|
Also available in: Unified diff
Renamed MetaCatUtil to MetacatUtil