本文整理汇总了Java中org.jboss.as.server.deployment.DeploymentUnit.removeAttachment方法的典型用法代码示例。如果您正苦于以下问题:Java DeploymentUnit.removeAttachment方法的具体用法?Java DeploymentUnit.removeAttachment怎么用?Java DeploymentUnit.removeAttachment使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jboss.as.server.deployment.DeploymentUnit
的用法示例。
在下文中一共展示了DeploymentUnit.removeAttachment方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: unregisterLogContext
import org.jboss.as.server.deployment.DeploymentUnit; //导入方法依赖的package包/类
private void unregisterLogContext(final DeploymentUnit deploymentUnit, final AttachmentKey<LogContext> attachmentKey, final Module module) {
final LogContext logContext = deploymentUnit.removeAttachment(attachmentKey);
if (logContext != null) {
final boolean success;
if (WildFlySecurityManager.isChecking()) {
success = WildFlySecurityManager.doUnchecked(new PrivilegedAction<Boolean>() {
@Override
public Boolean run() {
return logContextSelector.unregisterLogContext(module.getClassLoader(), logContext);
}
});
} else {
success = logContextSelector.unregisterLogContext(module.getClassLoader(), logContext);
}
if (success) {
LoggingLogger.ROOT_LOGGER.tracef("Removed LogContext '%s' from '%s'", logContext, module);
} else {
LoggingLogger.ROOT_LOGGER.logContextNotRemoved(logContext, deploymentUnit.getName());
}
}
}
示例2: deploy
import org.jboss.as.server.deployment.DeploymentUnit; //导入方法依赖的package包/类
@Override
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
deploymentUnit.removeAttachment(Attachments.COMPOSITE_ANNOTATION_INDEX);
for(final ResourceRoot root : DeploymentUtils.allResourceRoots(deploymentUnit)) {
root.removeAttachment(Attachments.ANNOTATION_INDEX);
}
}
示例3: undeploy
import org.jboss.as.server.deployment.DeploymentUnit; //导入方法依赖的package包/类
public void undeploy(DeploymentUnit context) {
final ResourceRoot resourceRoot = context.removeAttachment(Attachments.DEPLOYMENT_ROOT);
if (resourceRoot != null) {
final Closeable mountHandle = resourceRoot.getMountHandle();
VFSUtils.safeClose(mountHandle);
}
}
示例4: undeploy
import org.jboss.as.server.deployment.DeploymentUnit; //导入方法依赖的package包/类
@Override
public void undeploy(final DeploymentUnit context) {
//any processors from these subsystems that run before this DUP
//will have run, so we need to clear this to make sure their undeploy
//will be called
context.removeAttachment(Attachments.EXCLUDED_SUBSYSTEMS);
}
示例5: undeploy
import org.jboss.as.server.deployment.DeploymentUnit; //导入方法依赖的package包/类
public void undeploy(DeploymentUnit deploymentUnit) {
deploymentUnit.removeAttachment(Attachments.COMPOSITE_ANNOTATION_INDEX);
}
示例6: undeploy
import org.jboss.as.server.deployment.DeploymentUnit; //导入方法依赖的package包/类
@Override
public void undeploy(final DeploymentUnit deploymentUnit) {
deploymentUnit.removeAttachment(Attachments.MODULE);
deploymentUnit.removeAttachment(Attachments.MODULE_PERMISSIONS);
deploymentUnit.removeAttachment(DelegatingClassFileTransformer.ATTACHMENT_KEY);
}
示例7: undeploy
import org.jboss.as.server.deployment.DeploymentUnit; //导入方法依赖的package包/类
@Override
public void undeploy(final DeploymentUnit unit) {
unit.removeAttachment(JBossAllXMLParserDescription.ATTACHMENT_KEY);
}
示例8: undeploy
import org.jboss.as.server.deployment.DeploymentUnit; //导入方法依赖的package包/类
@Override
public void undeploy(final DeploymentUnit context) {
for(JBossAllXMLParserDescription<?> parser : context.getAttachmentList(JBossAllXMLParserDescription.ATTACHMENT_KEY)) {
context.removeAttachment(parser.getAttachmentKey());
}
}
示例9: undeploy
import org.jboss.as.server.deployment.DeploymentUnit; //导入方法依赖的package包/类
public void undeploy(final DeploymentUnit context) {
context.removeAttachment(Attachments.REFLECTION_INDEX);
}