protected ServiceUnit doDeploy(String serviceUnitName, String serviceUnitRootPath) throws Exception { for (int i = 0; i < deployers.length; i++) { if (deployers[i].canDeploy(serviceUnitName, serviceUnitRootPath)) { return deployers[i].deploy(serviceUnitName, serviceUnitRootPath); } } return null; }
protected void doUndeploy(ServiceUnit su) throws Exception { for (int i = 0; i < deployers.length; i++) { if (deployers[i].canDeploy(su.getName(), su.getRootPath())) { deployers[i].undeploy(su); return; } } throw failure("undeploy", "Unable to find suitable deployer for Service Unit '" + su.getName() + "'", null); }