@Test(expected = ApplicationException.class) public void getBadAppDesc() throws IOException { aar.getApplicationDescription("org.foo.BAD"); }
public ApplicationDescription getApplicationDescription(String appName) { try { XMLConfiguration cfg = new XMLConfiguration(); cfg.setAttributeSplittingDisabled(true); cfg.setDelimiterParsingDisabled(true); cfg.load(appFile(appName, APP_XML)); return loadAppDescription(cfg); } catch (Exception e) { throw new ApplicationException("Unable to get app description", e); } }
ApplicationArchive extends AbstractStore<ApplicationEvent, ApplicationStoreDelegate> { public ApplicationDescription getApplicationDescription(String appName) { try { XMLConfiguration cfg = new XMLConfiguration(); cfg.setAttributeSplittingDisabled(true); cfg.setDelimiterParsingDisabled(true); cfg.load(appFile(appName, APP_XML)); return loadAppDescription(cfg); } catch (Exception e) { throw new ApplicationException("Unable to get app description", e); } } }
ApplicationArchive extends AbstractStore<ApplicationEvent, ApplicationStoreDelegate> { public ApplicationDescription getApplicationDescription(String appName) { try { XMLConfiguration cfg = new XMLConfiguration(); cfg.setAttributeSplittingDisabled(true); cfg.setDelimiterParsingDisabled(true); cfg.load(appFile(appName, APP_XML)); return loadAppDescription(cfg); } catch (Exception e) { throw new ApplicationException("Unable to get app description", e); } }  }
ApplicationArchive extends AbstractStore<ApplicationEvent, ApplicationStoreDelegate> { public ApplicationDescription getApplicationDescription(String appName) { try { XMLConfiguration cfg = new XMLConfiguration(); cfg.setAttributeSplittingDisabled(true); cfg.setDelimiterParsingDisabled(true); cfg.load(appFile(appName, APP_XML)); return loadAppDescription(cfg); } catch (Exception e) { throw new ApplicationException("Unable to get app description", e); } }  String getRootPath(); Set<String> getApplicationNames(); long getUpdateTime(String appName); ApplicationDescription getApplicationDescription(String appName); synchronized ApplicationDescription saveApplication(InputStream stream); synchronized void purgeApplication(String appName); synchronized InputStream getApplicationInputStream(String appName); ApplicationRole getRole(String value); }
ApplicationArchive extends AbstractStore<ApplicationEvent, ApplicationStoreDelegate> { public ApplicationDescription getApplicationDescription(String appName) { try { XMLConfiguration cfg = new XMLConfiguration(); cfg.setAttributeSplittingDisabled(true); cfg.setDelimiterParsingDisabled(true); cfg.load(appFile(appName, APP_XML)); return loadAppDescription(cfg); } catch (Exception e) { throw new ApplicationException("Unable to get app description", e); } }  String getRootPath(); Set<String> getApplicationNames(); long getUpdateTime(String appName); ApplicationDescription getApplicationDescription(String appName); synchronized ApplicationDescription saveApplication(InputStream stream); synchronized void purgeApplication(String appName); synchronized InputStream getApplicationInputStream(String appName); ApplicationRole getRole(String value);  }