当前位置: 首页>>代码示例>>Java>>正文


Java DeploymentUnit.removeAttachment方法代码示例

本文整理汇总了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());
        }
    }
}
 
开发者ID:wildfly,项目名称:wildfly-core,代码行数:22,代码来源:AbstractLoggingDeploymentProcessor.java

示例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);
    }

}
 
开发者ID:wildfly,项目名称:wildfly-core,代码行数:10,代码来源:CleanupAnnotationIndexProcessor.java

示例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);
    }
}
 
开发者ID:wildfly,项目名称:wildfly-core,代码行数:8,代码来源:DeploymentRootMountProcessor.java

示例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);
}
 
开发者ID:wildfly,项目名称:wildfly-core,代码行数:8,代码来源:DeploymentStructureDescriptorParser.java

示例5: undeploy

import org.jboss.as.server.deployment.DeploymentUnit; //导入方法依赖的package包/类
public void undeploy(DeploymentUnit deploymentUnit) {
    deploymentUnit.removeAttachment(Attachments.COMPOSITE_ANNOTATION_INDEX);
}
 
开发者ID:wildfly,项目名称:wildfly-core,代码行数:4,代码来源:CompositeIndexProcessor.java

示例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);
}
 
开发者ID:wildfly,项目名称:wildfly-core,代码行数:7,代码来源:ModuleSpecProcessor.java

示例7: undeploy

import org.jboss.as.server.deployment.DeploymentUnit; //导入方法依赖的package包/类
@Override
public void undeploy(final DeploymentUnit unit) {
    unit.removeAttachment(JBossAllXMLParserDescription.ATTACHMENT_KEY);
}
 
开发者ID:wildfly,项目名称:wildfly-core,代码行数:5,代码来源:JBossAllXmlParserRegisteringProcessor.java

示例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());
    }
}
 
开发者ID:wildfly,项目名称:wildfly-core,代码行数:7,代码来源:JBossAllXMLParsingProcessor.java

示例9: undeploy

import org.jboss.as.server.deployment.DeploymentUnit; //导入方法依赖的package包/类
public void undeploy(final DeploymentUnit context) {
    context.removeAttachment(Attachments.REFLECTION_INDEX);
}
 
开发者ID:wildfly,项目名称:wildfly-core,代码行数:4,代码来源:InstallReflectionIndexProcessor.java


注:本文中的org.jboss.as.server.deployment.DeploymentUnit.removeAttachment方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。