/** * Deploy a url * * @param url the deployment url * @throws Throwable for any error */ protected void deploy(URL url) throws Throwable { deployer.deploy(url); }
protected void deploy(URL url) throws Throwable { deployer.deploy(url); }
protected void deploy(URL url) throws Throwable { deployer.deploy(url); }
KernelDeployment deployment = deployer.deploy(url); log.trace("Deployed " + url); return deployment;
/** * Deploy a deployment * * @param deployment the deployment * @throws Exception for any error */ protected void deploy(KernelDeployment deployment) throws Exception { log.debug("Deploying " + deployment); try { deployer.deploy(deployment); log.debug("Deployed " + deployment); } catch (Exception e) { throw e; } catch (Error e) { throw e; } catch (Throwable t) { throw new RuntimeException("Error deploying deployment: " + deployment, t); } }
/** * Deploy a deployment * * @param deployment the deployment * @throws Exception for any error */ private static void deploy(KernelDeployment deployment) throws Exception { log.debug("Deploying " + deployment); try { deployer.deploy(deployment); log.debug("Deployed " + deployment); } catch (Exception e) { throw e; } catch (Error e) { throw e; } catch (Throwable t) { throw new RuntimeException("Error deploying deployment: " + deployment, t); } } /**
deploy(deployment);
/** * Deploy a stream. We may be deploying XML fragments. * * @param deploymentName the deployment name * @param stream the stream * @return the kernel deployment * @throws Throwable for any error */ public KernelDeployment deploy(String deploymentName, final InputStream stream) throws Throwable { boolean trace = log.isTraceEnabled(); if (trace) log.trace("Parsing " + deploymentName); Unmarshaller unmarshaller = factory.newUnmarshaller(); KernelDeployment deployment = (KernelDeployment) unmarshaller.unmarshal(stream, resolver); if (deployment == null) throw new RuntimeException("The deployment " + deploymentName + " is not well formed!"); deployment.setName(deploymentName); deploy(deployment); return deployment; } }
/** * Deploy MC beans from URL */ public void deploy(URL url) { log.debug("deploy: " + url); // Deploy the beans try { deployer.deploy(url); deployer.validate(); // The KernelLocator is expected to get deployed as a bean if (KernelLocator.getKernel() == null) throw new BPMException("KernelLocator not deployed as MC bean"); } catch (Throwable e) { throw new BPMException("Cannot deploy beans from: " + url, e); } }