@Test public void testReload() throws Exception { final AppInfo appInfo = getDeployedApp(); final Deployer deployer = getDeployer(); deployer.reload(appInfo.path); final Collection<AppInfo> deployedApps = deployer.getDeployedApps(); boolean found = false; for (final AppInfo app : deployedApps) { if (app.path.equals(appInfo.path)) { found = true; } } Assert.assertTrue("Failed to find app after redeploy", found); }
@Override public void reload(final String moduleId) { for (final AppInfo info : assembler.getDeployedApplications()) { if (info.path.equals(moduleId)) { reload(info); break; } } }
DeployerEjb implements Deployer { @Override public void reload(final String moduleId) { for (final AppInfo info : assembler.getDeployedApplications()) { if (info.path.equals(moduleId)) { reload(info); break; } } } }
DeployerEjb implements Deployer { @Override public void reload(final String moduleId) { for (final AppInfo info : assembler.getDeployedApplications()) { if (info.path.equals(moduleId)) { reload(info); break; } } } DeployerEjb(); }
DeployerEjb implements Deployer { @Override public void reload(final String moduleId) { for (final AppInfo info : assembler.getDeployedApplications()) { if (info.path.equals(moduleId)) { reload(info); break; } } } DeployerEjb(); @Override String getUniqueFile(); @Override Collection<AppInfo> getDeployedApps(); @Override AppInfo deploy(final String location); @Override AppInfo deploy(final Properties properties); @Override AppInfo deploy(final String inLocation, Properties properties); @Override void undeploy(final String moduleId); @Override void reload(final String moduleId); }
DeployerEjb implements Deployer { @Override public void reload(final String moduleId) { for (final AppInfo info : assembler.getDeployedApplications()) { if (info.path.equals(moduleId)) { reload(info); break; } } } DeployerEjb(); @Override String getUniqueFile(); @Override Collection<AppInfo> getDeployedApps(); @Override AppInfo deploy(final String location); @Override AppInfo deploy(final Properties properties); @Override AppInfo deploy(final String inLocation, Properties properties); @Override void undeploy(final String moduleId); @Override void reload(final String moduleId); static final String OPENEJB_DEPLOYER_FORCED_APP_ID_PROP; static final String OPENEJB_DEPLOYER_HOST; static final String OPENEJB_USE_BINARIES; static final String OPENEJB_PATH_BINARIES; static final String OPENEJB_VALUE_BINARIES; static final String OPENEJB_APP_AUTODEPLOY; static final ThreadLocal<Boolean> AUTO_DEPLOY; }