protected <T extends Container, U extends ApplicationContainer> Deployer<T, U> getDeployer(EngineInfo<T, U> engineInfo) { return engineInfo.getDeployer(); }
protected <T extends Container, U extends ApplicationContainer> Deployer<T, U> getDeployer(EngineInfo<T, U> engineInfo) { return engineInfo.getDeployer(); }
public void clean(ExtendedDeploymentContext context) throws Exception { getDeployer().clean(context); }
public void clean(ExtendedDeploymentContext context) throws Exception { getDeployer().clean(context); cleanup(); }
public void stop(Logger logger) { if (getDeployer()!=null) { ServiceHandle<?> i = registry.habitat.getServiceHandle(getDeployer().getClass()); if (i!=null) { i.destroy(); } } if (container != null && container.isActive()) { container.destroy(); } registry.removeContainer(this); if (logger.isLoggable(Level.FINE)) { logger.fine("Container " + getContainer().getName() + " stopped"); } } }
public void stop(Logger logger) { if (getDeployer()!=null) { Inhabitant i = registry.habitat.getInhabitantByType(getDeployer().getClass()); if (i!=null) { i.release(); } } if (getContainer()!=null) { Inhabitant i = registry.habitat.getInhabitantByType(getContainer().getClass()); if (i!=null) { i.release(); } } registry.removeContainer(this); if (logger.isLoggable(Level.FINE)) { logger.fine("Container " + getContainer().getName() + " stopped"); } } }
/** * unloads the module from its container. * * @param context unloading context * @return */ public boolean unload(ExtendedDeploymentContext context) { ActionReport report = context.getActionReport(); // then remove the application from the container Deployer deployer = ctrInfo.getDeployer(); try { deployer.unload(appCtr, context); ctrInfo.unload(context); } catch(Exception e) { report.failure(context.getLogger(), "Exception while shutting down application container", e); return false; } appCtr=null; return true; }
/** * unloads the module from its container. * * @param context unloading context * @return */ public boolean unload(ExtendedDeploymentContext context) { ActionReport report = context.getActionReport(); // then remove the application from the container Deployer deployer = ctrInfo.getDeployer(); try { deployer.unload(appCtr, context); ctrInfo.unload(context); } catch(Exception e) { report.failure(context.getLogger(), "Exception while shutting down application container", e); return false; } appCtr=null; return true; }
LOGGER.log(Level.FINE, "Got container, deployer is {0}", info.getDeployer());
Deployer deployer = engineInfo.getDeployer();
Deployer deployer = engineInfo.getDeployer();
Deployer deployer = engineInfo.getDeployer();
Deployer deployer = engineInfo.getDeployer();