@Override public void undeploy(DeploymentUnit unit, Module deployment) { if (handler != null) unit.removeAttachment(ErrorHandler.class); if (finder != null) unit.removeAttachment(ResourceOwnerFinder.class); unit.removeAttachment(ReflectProvider.class); }
@Override public void undeploy(DeploymentUnit unit, JBossAppMetaData deployment) { //Perform JACC cleanup for the EAR unit.removeAttachment(PolicyConfiguration.class); }
public <T> T removeAttachment(String name, Class<T> expectedType) { return delegate.removeAttachment(name, expectedType); }
public <T> T removeAttachment(Class<T> type) { return delegate.removeAttachment(type); }
public Object removeAttachment(String name) { return delegate.removeAttachment(name); }
/** * Remove object name from attachment. * * @param unit the deployment unit * @param attachmentName the attachment name * @return object name from attachment */ protected static ObjectName removeObjectName(DeploymentUnit unit, String attachmentName) { return unit.removeAttachment(attachmentName + "." + ObjectName.class.getSimpleName(), ObjectName.class); }
/** * Undeploy a message driven bean * * @param unit the deployment unit * @param mdb the mdb * @throws DeploymentException for any error */ protected void undeploy(DeploymentUnit unit, JBossMessageDrivenBeanMetaData mdb) throws DeploymentException { unit.removeAttachment(getAttachmentName(unit, mdb)); }
public void deploy(DeploymentUnit unit, Module deployment) throws DeploymentException { ReflectProvider provider = unit.removeAttachment(ReflectProvider.class); if (provider != null && provider instanceof CachingReflectProvider) { CachingReflectProvider crp = (CachingReflectProvider)provider; crp.reset(); } } }
@Override public void undeploy(DeploymentUnit unit) { unit.removeAttachment(JACC_ATTACHMENT_NAME); // unregister any XACML or ACL policies associated with the deployment unit. String contextId = unit.getSimpleName(); if (this.policyRegistration != null) { this.policyRegistration.deRegisterPolicy(contextId, PolicyRegistration.XACML); this.policyRegistration.deRegisterPolicy(contextId, PolicyRegistration.ACL); } }
unit.removeAttachment(ResourceFilter.class.getName() + ".recurse");