Revision 5326
Added by Matt Jones over 14 years ago
src/edu/ucsb/nceas/metacat/service/XMLSchemaService.java | ||
---|---|---|
77 | 77 |
* private constructor since this is a singleton |
78 | 78 |
*/ |
79 | 79 |
private XMLSchemaService() { |
80 |
try { |
|
81 |
_serviceName = "XMLSchemaService"; |
|
82 |
|
|
83 |
setUseFullSchemaValidation(); |
|
84 |
populateRegisteredSchemaList(); |
|
85 |
createRegisteredNameSpaceList(); |
|
86 |
createRegisteredNameSpaceAndLocationString(); |
|
87 |
|
|
88 |
} catch (PropertyNotFoundException pnfe) { |
|
89 |
logMetacat.error("XMLService.XMLSchemaService() - Could not find property: xml.useFullSchemaValidation. " + |
|
90 |
"Setting to false."); |
|
91 |
} |
|
80 |
_serviceName = "XMLSchemaService"; |
|
81 |
try { |
|
82 |
doRefresh(); |
|
83 |
} catch (ServiceException e) { |
|
84 |
logMetacat.debug(e.getMessage()); |
|
85 |
} |
|
92 | 86 |
} |
93 | 87 |
|
94 | 88 |
/** |
... | ... | |
111 | 105 |
* refresh the persistant values in this service. |
112 | 106 |
*/ |
113 | 107 |
public void doRefresh() throws ServiceException { |
108 |
logMetacat.debug("XMLService.doRefresh - refreshing the schema service."); |
|
114 | 109 |
try { |
115 | 110 |
populateRegisteredSchemaList(); |
116 | 111 |
setUseFullSchemaValidation(); |
Also available in: Unified diff
Refactored schema service to call doRefresh() in constructor to eliminate code duplication.