MCPcopy Create free account
hub / github.com/apache/tomcat / startInternal

Method startInternal

java/org/apache/catalina/realm/MemoryRealm.java:231–256  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

229 // ------------------------------------------------------ Lifecycle Methods
230
231 @Override
232 protected void startInternal() throws LifecycleException {
233 String pathName = getPathname();
234 try (InputStream is = ConfigFileLoader.getSource().getResource(pathName).getInputStream()) {
235 // Load the contents of the database file
236 if (log.isTraceEnabled()) {
237 log.trace(sm.getString("memoryRealm.loadPath", pathName));
238 }
239
240 synchronized (digesterLock) {
241 Digester digester = getDigester();
242 try {
243 digester.push(this);
244 digester.parse(is);
245 } catch (Exception e) {
246 throw new LifecycleException(sm.getString("memoryRealm.readXml"), e);
247 } finally {
248 digester.reset();
249 }
250 }
251 } catch (IOException ioe) {
252 throw new LifecycleException(sm.getString("memoryRealm.loadExist", pathName), ioe);
253 }
254
255 super.startInternal();
256 }
257}

Callers

nothing calls this directly

Calls 11

getPathnameMethod · 0.95
getSourceMethod · 0.95
getDigesterMethod · 0.95
pushMethod · 0.95
parseMethod · 0.95
resetMethod · 0.95
getInputStreamMethod · 0.65
getResourceMethod · 0.65
isTraceEnabledMethod · 0.65
traceMethod · 0.65
getStringMethod · 0.65

Tested by

no test coverage detected