()
| 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 | } |
nothing calls this directly
no test coverage detected