/** * {@inheritDoc} * @see DeployableContainer#undeploy(Descriptor) */ @Override public void undeploy(Descriptor descriptor) throws DeploymentException { if (descriptor == null) throw new DeploymentException("Could not undeploy a null application"); try { embedded.undeploy(descriptor); } catch (Throwable t) { throw new DeploymentException("Could not undeploy the application: " + t.getMessage(), t); } }
/** * {@inheritDoc} * @see DeployableContainer#undeploy(Descriptor) */ @Override public void undeploy(Descriptor descriptor) throws DeploymentException { if (descriptor == null) throw new DeploymentException("Could not undeploy a null application"); try { embedded.undeploy(descriptor); } catch (Throwable t) { throw new DeploymentException("Could not undeploy the application: " + t.getMessage(), t); } }
/** * {@inheritDoc} * @see DeployableContainer#undeploy(Descriptor) */ @Override public void undeploy(Descriptor descriptor) throws DeploymentException { if (descriptor == null) throw new DeploymentException("Could not undeploy a null application"); try { embedded.undeploy(descriptor); } catch (Throwable t) { throw new DeploymentException("Could not undeploy the application: " + t.getMessage(), t); } }
/** * {@inheritDoc} * @see DeployableContainer#undeploy(Archive) */ @Override public void undeploy(final Archive<?> archive) throws DeploymentException { if (archive == null) throw new DeploymentException("Could not undeploy a null application"); if (!(ResourceAdapterArchive.class.isInstance(archive))) throw new DeploymentException("Could not undeploy a non resource adapter application"); try { embedded.undeploy(ResourceAdapterArchive.class.cast(archive)); } catch (Throwable t) { throw new DeploymentException("Could not undeploy the application: " + t.getMessage(), t); } }
/** * {@inheritDoc} * @see DeployableContainer#undeploy(Archive) */ @Override public void undeploy(final Archive<?> archive) throws DeploymentException { if (archive == null) throw new DeploymentException("Could not undeploy a null application"); if (!(ResourceAdapterArchive.class.isInstance(archive))) throw new DeploymentException("Could not undeploy a non resource adapter application"); try { embedded.undeploy(ResourceAdapterArchive.class.cast(archive)); } catch (Throwable t) { throw new DeploymentException("Could not undeploy the application: " + t.getMessage(), t); } }
/** * {@inheritDoc} * @see DeployableContainer#undeploy(Archive) */ @Override public void undeploy(final Archive<?> archive) throws DeploymentException { if (archive == null) throw new DeploymentException("Could not undeploy a null application"); if (!(ResourceAdapterArchive.class.isInstance(archive))) throw new DeploymentException("Could not undeploy a non resource adapter application"); try { embedded.undeploy(ResourceAdapterArchive.class.cast(archive)); } catch (Throwable t) { throw new DeploymentException("Could not undeploy the application: " + t.getMessage(), t); } }