• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java ResourceRoot类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.jboss.as.server.deployment.module.ResourceRoot的典型用法代码示例。如果您正苦于以下问题:Java ResourceRoot类的具体用法?Java ResourceRoot怎么用?Java ResourceRoot使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ResourceRoot类属于org.jboss.as.server.deployment.module包,在下文中一共展示了ResourceRoot类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: deploy

import org.jboss.as.server.deployment.module.ResourceRoot; //导入依赖的package包/类
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
    final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
    
    if(deploymentUnit.getAttachment(Attachments.DEPLOYMENT_ROOT) != null) {
        return;
    }
    
    final String deploymentName = deploymentUnit.getName();
    final VirtualFile deploymentContents = deploymentUnit.getAttachment(Attachments.DEPLOYMENT_CONTENTS);

    // internal deployments do not have any contents, so there is nothing to mount
    if (deploymentContents == null)
        return;
    
    if (deploymentName.endsWith(DYNAMIC_VDB_STRUCTURE)) {
        // use the contents directly
        // nothing was mounted
        final ResourceRoot resourceRoot = new ResourceRoot(deploymentContents, null);
        ModuleRootMarker.mark(resourceRoot);
        deploymentUnit.putAttachment(Attachments.DEPLOYMENT_ROOT, resourceRoot);
        deploymentUnit.putAttachment(Attachments.MODULE_SPECIFICATION, new ModuleSpecification());            
    }
}
 
开发者ID:kenweezy,项目名称:teiid,代码行数:24,代码来源:DynamicVDBRootMountDeployer.java


示例2: deploy

import org.jboss.as.server.deployment.module.ResourceRoot; //导入依赖的package包/类
@Override
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
    final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
    if (TeiidAttachments.isTranslator(deploymentUnit)) {
    	return;
    }

    List<ResourceRoot> resourceRoots = DeploymentUtils.allResourceRoots(deploymentUnit);
    for (ResourceRoot resourceRoot : resourceRoots) {
        final VirtualFile deploymentRoot = resourceRoot.getRoot();

        if (deploymentRoot.getChild("META-INF/services/org.teiid.translator.ExecutionFactory").exists())  { //$NON-NLS-1$
            TeiidAttachments.setAsTranslatorDeployment(deploymentUnit);
            //deploymentUnit.putAttachment(Attachments.IGNORE_OSGI, Boolean.TRUE);
            break;
        }
    }
}
 
开发者ID:kenweezy,项目名称:teiid,代码行数:19,代码来源:TranslatorStructureDeployer.java


示例3: deploy

import org.jboss.as.server.deployment.module.ResourceRoot; //导入依赖的package包/类
@Override
public final void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
    final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
    // If the log context is already defined, skip the rest of the processing
    if (!hasRegisteredLogContext(deploymentUnit)) {
        if (deploymentUnit.hasAttachment(Attachments.MODULE) && deploymentUnit.hasAttachment(Attachments.DEPLOYMENT_ROOT)) {
            // don't process sub-deployments as they are processed by processing methods
            final ResourceRoot root = deploymentUnit.getAttachment(Attachments.DEPLOYMENT_ROOT);
            if (SubDeploymentMarker.isSubDeployment(root)) return;
            processDeployment(phaseContext, deploymentUnit, root);
            // If we still don't have a context registered on the root deployment, register the current context.
            // This is done to avoid any logging from the root deployment to have access to a sub-deployments log
            // context. For example any library logging from a EAR/lib should use the EAR's configured log context,
            // not a log context from a WAR or EJB library.
            if (!hasRegisteredLogContext(deploymentUnit) && !deploymentUnit.hasAttachment(DEFAULT_LOG_CONTEXT_KEY)) {
                // Register the current log context as this could be an embedded server or overridden another way
                registerLogContext(deploymentUnit, DEFAULT_LOG_CONTEXT_KEY, deploymentUnit.getAttachment(Attachments.MODULE), LogContext.getLogContext());
            }
        }
    }
}
 
开发者ID:wildfly,项目名称:wildfly-core,代码行数:22,代码来源:AbstractLoggingDeploymentProcessor.java


示例4: undeploy

import org.jboss.as.server.deployment.module.ResourceRoot; //导入依赖的package包/类
@Override
public final void undeploy(final DeploymentUnit context) {
    // OSGi bundles deployments may not have a module attached
    if (context.hasAttachment(Attachments.MODULE)) {
        // don't process sub-deployments as they are processed by processing methods
        final ResourceRoot root = context.getAttachment(Attachments.DEPLOYMENT_ROOT);
        if (SubDeploymentMarker.isSubDeployment(root)) return;
        // Remove any log context selector references
        final Module module = context.getAttachment(Attachments.MODULE);
        // Remove either the default log context or a defined log context. It's safe to attempt to remove a
        // nonexistent context.
        unregisterLogContext(context, DEFAULT_LOG_CONTEXT_KEY, module);
        unregisterLogContext(context, LOG_CONTEXT_KEY, module);
        // Unregister all sub-deployments
        final List<DeploymentUnit> subDeployments = getSubDeployments(context);
        for (DeploymentUnit subDeployment : subDeployments) {
            final Module subDeploymentModule = subDeployment.getAttachment(Attachments.MODULE);
            // Sub-deployment should never have a default log context
            unregisterLogContext(subDeployment, LOG_CONTEXT_KEY, subDeploymentModule);
        }
    }
}
 
开发者ID:wildfly,项目名称:wildfly-core,代码行数:23,代码来源:AbstractLoggingDeploymentProcessor.java


示例5: isExplodedSubUnitOverlay

import org.jboss.as.server.deployment.module.ResourceRoot; //导入依赖的package包/类
private boolean isExplodedSubUnitOverlay(DeploymentUnit deploymentUnit, VirtualFile mountPoint, String path) {
    final List<ResourceRoot> childRes = deploymentUnit.getAttachmentList(Attachments.RESOURCE_ROOTS);
    if (childRes != null) {
        for (ResourceRoot rs: childRes) {
            if (path.startsWith(rs.getRoot().getName())) {
                String relativePath = mountPoint.getPathNameRelativeTo(rs.getRoot());
                if (relativePath != null
                        && relativePath.length() > 0
                        && SubExplodedDeploymentMarker.isSubExplodedResourceRoot(rs)) {
                    return true;
                }
            }
        }
    }
    return false;
}
 
开发者ID:wildfly,项目名称:wildfly-core,代码行数:17,代码来源:DeploymentOverlayDeploymentUnitProcessor.java


示例6: getAnnotationIndexes

import org.jboss.as.server.deployment.module.ResourceRoot; //导入依赖的package包/类
public static Map<ResourceRoot, Index> getAnnotationIndexes(final DeploymentUnit deploymentUnit) {
    final List<ResourceRoot> allResourceRoots = new ArrayList<ResourceRoot>();
    allResourceRoots.addAll(deploymentUnit.getAttachmentList(Attachments.RESOURCE_ROOTS));
    allResourceRoots.add(deploymentUnit.getAttachment(Attachments.DEPLOYMENT_ROOT));
    Map<ResourceRoot, Index> indexes = new HashMap<ResourceRoot, Index>();
    for (ResourceRoot resourceRoot : allResourceRoots) {
        if (resourceRoot == null)
            continue;

        Index index = resourceRoot.getAttachment(Attachments.ANNOTATION_INDEX);
        if (index != null) {
            indexes.put(resourceRoot, index);
        }
    }
    return indexes;
}
 
开发者ID:wildfly,项目名称:wildfly-core,代码行数:17,代码来源:AnnotationIndexUtils.java


示例7: handleClassPathItems

import org.jboss.as.server.deployment.module.ResourceRoot; //导入依赖的package包/类
/**
 * Loops through all resource roots that have been made available transitively via Class-Path entries, and
 * adds them to the list of roots to be processed.
 */
private Collection<? extends ResourceRoot> handleClassPathItems(final DeploymentUnit deploymentUnit) {
    final Set<ResourceRoot> additionalRoots = new HashSet<ResourceRoot>();
    final ArrayDeque<ResourceRoot> toProcess = new ArrayDeque<ResourceRoot>();
    final List<ResourceRoot> resourceRoots = DeploymentUtils.allResourceRoots(deploymentUnit);
    toProcess.addAll(resourceRoots);
    final Set<ResourceRoot> processed = new HashSet<ResourceRoot>(resourceRoots);

    while (!toProcess.isEmpty()) {
        final ResourceRoot root = toProcess.pop();
        final List<ResourceRoot> classPathRoots = root.getAttachmentList(Attachments.CLASS_PATH_RESOURCE_ROOTS);
        for(ResourceRoot cpRoot : classPathRoots) {
            if(!processed.contains(cpRoot)) {
                additionalRoots.add(cpRoot);
                toProcess.add(cpRoot);
                processed.add(cpRoot);
            }
        }
    }
    return additionalRoots;
}
 
开发者ID:wildfly,项目名称:wildfly-core,代码行数:25,代码来源:CompositeIndexProcessor.java


示例8: undeploy

import org.jboss.as.server.deployment.module.ResourceRoot; //导入依赖的package包/类
@Override
public void undeploy(final DeploymentUnit deploymentUnit) {
    final ServiceRegistry serviceRegistry = deploymentUnit.getServiceRegistry();
    final List<ResourceRoot> childRoots = deploymentUnit.getAttachmentList(Attachments.RESOURCE_ROOTS);
    for (final ResourceRoot childRoot : childRoots) {
        if (!SubDeploymentMarker.isSubDeployment(childRoot)) {
            continue;
        }
        final ServiceName serviceName = Services.deploymentUnitName(deploymentUnit.getName(), childRoot.getRootName());
        final ServiceController<?> serviceController = serviceRegistry.getService(serviceName);
        if (serviceController != null) {
            serviceController.setMode(ServiceController.Mode.REMOVE);
        }
    }
    deploymentUnit.removeAttachment(Attachments.SUB_DEPLOYMENTS);
}
 
开发者ID:wildfly,项目名称:wildfly-core,代码行数:17,代码来源:SubDeploymentProcessor.java


示例9: processAnnotationIndex

import org.jboss.as.server.deployment.module.ResourceRoot; //导入依赖的package包/类
private void processAnnotationIndex(DeploymentUnit deploymentUnit) {
    DotName dotName = DotName.createSimple(BootstrapDatabase.class.getName());
    CompositeIndex index = deploymentUnit.getAttachment(COMPOSITE_ANNOTATION_INDEX);
    if (index == null) {
        return;
    }

    List<AnnotationInstance> indexAnnotations = index.getAnnotations(dotName);
    if (indexAnnotations.isEmpty()) {
        return;
    }

    ResourceRoot deploymentRoot = deploymentUnit.getAttachment(DEPLOYMENT_ROOT);
    VirtualFile root = deploymentRoot.getRoot();

    DbBootstrapLogger.ROOT_LOGGER.tracef("match on %s", root.getPathName());
    try {
        final Module module = deploymentUnit.getAttachment(MODULE);
        processAnnotatedClasses(indexAnnotations, module.getClassLoader());
    } catch (Exception e) {
        DbBootstrapLogger.ROOT_LOGGER.error("Unable to process the internal jar files", e);
    }
}
 
开发者ID:wildfly-extras,项目名称:db-bootstrap,代码行数:24,代码来源:DbBootstrapScanDetectorProcessor.java


示例10: deploy

import org.jboss.as.server.deployment.module.ResourceRoot; //导入依赖的package包/类
@Override
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
    final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
    final ResourceRoot deploymentRoot = deploymentUnit.getAttachment(Attachments.DEPLOYMENT_ROOT);
    final ServiceModuleLoader moduleLoader = deploymentUnit.getAttachment(Attachments.SERVICE_MODULE_LOADER);
    final ModuleSpecification moduleSpecification = deploymentUnit.getAttachment(Attachments.MODULE_SPECIFICATION);
    List<ResourceRoot> resourceRoots = deploymentUnit.getAttachmentList(Attachments.RESOURCE_ROOTS);


    //List<VirtualFile> jars = getJarList(deploymentRoot.getRoot());


    try {
        processBlackList(resourceRoots);
    } catch (IOException e) {
        SDDLogger.ROOT_LOGGER.couldNotProcessBlacklist(e);
    }

}
 
开发者ID:ctomc,项目名称:wildfly-sdd,代码行数:20,代码来源:ClassBlackListDetectorProcessor.java


示例11: deploy

import org.jboss.as.server.deployment.module.ResourceRoot; //导入依赖的package包/类
@Override
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {

    DeploymentUnit depUnit = phaseContext.getDeploymentUnit();
    Resource resource = depUnit.getAttachment(GraviaConstants.RESOURCE_KEY);
    if (resource != null)
        return;

    resource = NamedResourceAssociation.getResource(depUnit.getName());
    if (resource == null) {
        ResourceRoot deploymentRoot = depUnit.getAttachment(Attachments.DEPLOYMENT_ROOT);
        Manifest manifest = deploymentRoot != null ? deploymentRoot.getAttachment(Attachments.MANIFEST) : null;
        if (manifest != null) {
            ManifestResourceBuilder builder = new ManifestResourceBuilder().load(manifest);
            if (builder.isValid()) {
                resource = builder.getResource();
            }
        }
    }

    if (resource != null) {
        depUnit.putAttachment(GraviaConstants.RESOURCE_KEY, resource);
    }
}
 
开发者ID:tdiesler,项目名称:gravia,代码行数:25,代码来源:ManifestResourceProcessor.java


示例12: undeploy

import org.jboss.as.server.deployment.module.ResourceRoot; //导入依赖的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:kenweezy,项目名称:teiid,代码行数:8,代码来源:DynamicVDBRootMountDeployer.java


示例13: deploy

import org.jboss.as.server.deployment.module.ResourceRoot; //导入依赖的package包/类
@Override
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
    final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
    final ResourceRoot deploymentRoot = deploymentUnit.getAttachment(Attachments.DEPLOYMENT_ROOT);
    final VirtualFile switchyardXml;
    
    if (DeploymentTypeMarker.isType(DeploymentType.WAR, deploymentUnit)) {
        // switchyard.xml file located in /WEB-INF
        final VirtualFile warSwitchYardXml = deploymentRoot.getRoot().getChild(SWITCHYARD_XML_WAR);
        if (warSwitchYardXml.exists()) {
            switchyardXml = warSwitchYardXml;
        } else {
            // fall back to original location
            switchyardXml = deploymentRoot.getRoot().getChild(SWITCHYARD_XML);
        }
    } else {
        switchyardXml = deploymentRoot.getRoot().getChild(SWITCHYARD_XML);
    }

    if (!switchyardXml.exists()) {
        return;
    }
    final String archiveName = deploymentUnit.getName();
    final String deploymentName = archiveName.substring(0, archiveName.lastIndexOf('.'));
    final SwitchYardMetaData switchYardMetaData = new SwitchYardMetaData(archiveName, deploymentName);
    switchYardMetaData.setSwitchYardFile(switchyardXml);

    deploymentUnit.putAttachment(SwitchYardMetaData.ATTACHMENT_KEY, switchYardMetaData);
    SwitchYardDeploymentMarker.mark(deploymentUnit);
}
 
开发者ID:jboss-switchyard,项目名称:switchyard,代码行数:31,代码来源:SwitchYardConfigDeploymentProcessor.java


示例14: findLoggingProfile

import org.jboss.as.server.deployment.module.ResourceRoot; //导入依赖的package包/类
/**
 * Find the logging profile attached to any resource.
 *
 * @param resourceRoot the root resource
 *
 * @return the logging profile name or {@code null} if one was not found
 */
private String findLoggingProfile(final ResourceRoot resourceRoot) {
    final Manifest manifest = resourceRoot.getAttachment(Attachments.MANIFEST);
    if (manifest != null) {
        final String loggingProfile = manifest.getMainAttributes().getValue(LOGGING_PROFILE);
        if (loggingProfile != null) {
            LoggingLogger.ROOT_LOGGER.debugf("Logging profile '%s' found in '%s'.", loggingProfile, resourceRoot);
            return loggingProfile;
        }
    }
    return null;
}
 
开发者ID:wildfly,项目名称:wildfly-core,代码行数:19,代码来源:LoggingProfileDeploymentProcessor.java


示例15: findConfigFile

import org.jboss.as.server.deployment.module.ResourceRoot; //导入依赖的package包/类
/**
 * Finds the configuration file to be used and returns the first one found.
 * <p/>
 * Preference is for {@literal logging.properties} or {@literal jboss-logging.properties}.
 *
 * @param resourceRoot the resource to check.
 *
 * @return the configuration file if found, otherwise {@code null}.
 *
 * @throws DeploymentUnitProcessingException if an error occurs.
 */
private VirtualFile findConfigFile(ResourceRoot resourceRoot) throws DeploymentUnitProcessingException {
    final VirtualFile root = resourceRoot.getRoot();
    // First check META-INF
    VirtualFile file = root.getChild("META-INF");
    VirtualFile result = findConfigFile(file);
    if (result == null) {
        file = root.getChild("WEB-INF/classes");
        result = findConfigFile(file);
    }
    return result;
}
 
开发者ID:wildfly,项目名称:wildfly-core,代码行数:23,代码来源:LoggingConfigDeploymentProcessor.java


示例16: resolveRelativePath

import org.jboss.as.server.deployment.module.ResourceRoot; //导入依赖的package包/类
private static String resolveRelativePath(final ResourceRoot root, final VirtualFile configFile) {
    // Get the parent of the root resource so the deployment name will be included in the path
    final VirtualFile deployment = root.getRoot().getParent();
    if (deployment != null) {
        return configFile.getPathNameRelativeTo(deployment);
    }
    // This shouldn't be reached, but a fallback is always safe
    return configFile.getPathNameRelativeTo(root.getRoot());
}
 
开发者ID:wildfly,项目名称:wildfly-core,代码行数:10,代码来源:LoggingConfigDeploymentProcessor.java


示例17: allResourceRoots

import org.jboss.as.server.deployment.module.ResourceRoot; //导入依赖的package包/类
/**
 * Get all resource roots for a {@link DeploymentUnit}
 *
 * @param deploymentUnit The deployment unit
 * @return The deployment root and any additional resource roots
 */
public static List<ResourceRoot> allResourceRoots(DeploymentUnit deploymentUnit) {
    List<ResourceRoot> roots = new ArrayList<ResourceRoot>();
    // not all deployment units have a deployment root
    final ResourceRoot deploymentRoot = deploymentUnit.getAttachment(Attachments.DEPLOYMENT_ROOT);
    if (deploymentRoot != null)
        roots.add(deploymentRoot);
    roots.addAll(deploymentUnit.getAttachmentList(Attachments.RESOURCE_ROOTS));
    return roots;
}
 
开发者ID:wildfly,项目名称:wildfly-core,代码行数:16,代码来源:DeploymentUtils.java


示例18: deploy

import org.jboss.as.server.deployment.module.ResourceRoot; //导入依赖的package包/类
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
    DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
    if (deploymentUnit.getParent() != null) {
        return;
    }

    final List<DeploymentUnit> deploymentUnits = new ArrayList<DeploymentUnit>();
    deploymentUnits.add(deploymentUnit);
    deploymentUnits.addAll(deploymentUnit.getAttachmentList(Attachments.SUB_DEPLOYMENTS));

    for (DeploymentUnit unit : deploymentUnits) {

        final ResourceRoot mainRoot = unit.getAttachment(Attachments.DEPLOYMENT_ROOT);
        if (mainRoot == null)
            continue;

        VirtualFile root = mainRoot.getRoot();
        for (String path : SEAM_FILES) {
            if (root.getChild(path).exists()) {
                final ModuleSpecification moduleSpecification = deploymentUnit
                        .getAttachment(Attachments.MODULE_SPECIFICATION);
                final ModuleLoader moduleLoader = Module.getBootModuleLoader();
                moduleSpecification.addSystemDependency(new ModuleDependency(moduleLoader, VFS_MODULE, false, false, false,
                        false)); // for VFS scanner

                try {
                    ResourceLoader resourceLoader = ResourceLoaders.createJarResourceLoader(SEAM_INT_JAR, new JarFile(
                            getSeamIntResourceRoot().getRoot().getPathName()));
                    moduleSpecification.addResourceLoader(ResourceLoaderSpec.createResourceLoaderSpec(resourceLoader));
                } catch (Exception e) {
                    throw new DeploymentUnitProcessingException(e);
                }

                unit.addToAttachmentList(Attachments.RESOURCE_ROOTS, getSeamIntResourceRoot());
                return;
            }
        }
    }
}
 
开发者ID:wildfly,项目名称:wildfly-core,代码行数:40,代码来源:Seam2Processor.java


示例19: deploy

import org.jboss.as.server.deployment.module.ResourceRoot; //导入依赖的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


示例20: handleDeployment

import org.jboss.as.server.deployment.module.ResourceRoot; //导入依赖的package包/类
private void handleDeployment(final DeploymentPhaseContext phaseContext, final DeploymentUnit deploymentUnit, final ModuleSpecification moduleSpec, final ModuleStructureSpec rootDeploymentSpecification, Set<ModuleIdentifier> additionalModules) throws DeploymentUnitProcessingException {
    final Map<VirtualFile, ResourceRoot> resourceRoots = resourceRoots(deploymentUnit);
    moduleSpec.addUserDependencies(rootDeploymentSpecification.getModuleDependencies());
    moduleSpec.addExclusions(rootDeploymentSpecification.getExclusions());
    moduleSpec.addAliases(rootDeploymentSpecification.getAliases());
    moduleSpec.addModuleSystemDependencies(rootDeploymentSpecification.getSystemDependencies());
    for (final ResourceRoot additionalResourceRoot : rootDeploymentSpecification.getResourceRoots()) {

        final ResourceRoot existingRoot = resourceRoots.get(additionalResourceRoot.getRoot());
        if (existingRoot != null) {
            //we already have to the resource root
            //so now we want to merge it
            existingRoot.merge(additionalResourceRoot);
        } else if (!additionalResourceRoot.getRoot().exists()) {
            ServerLogger.DEPLOYMENT_LOGGER.additionalResourceRootDoesNotExist(additionalResourceRoot.getRoot().getPathName());
        } else {
            deploymentUnit.addToAttachmentList(Attachments.RESOURCE_ROOTS, additionalResourceRoot);
            //compute the annotation index for the root
            ResourceRootIndexer.indexResourceRoot(additionalResourceRoot);
            ModuleRootMarker.mark(additionalResourceRoot);
        }
    }
    for (final String classFileTransformer : rootDeploymentSpecification.getClassFileTransformers()) {
        moduleSpec.addClassFileTransformer(classFileTransformer);
    }
    //handle annotations
    for (final ModuleIdentifier dependency : rootDeploymentSpecification.getAnnotationModules()) {
        deploymentUnit.addToAttachmentList(Attachments.ADDITIONAL_ANNOTATION_INDEXES, dependency);
        //additional modules will not be created till much later, a dep on them would fail
        if(dependency.getName().startsWith(ServiceModuleLoader.MODULE_PREFIX) && !additionalModules.contains(dependency)) {
            phaseContext.addToAttachmentList(Attachments.NEXT_PHASE_DEPS, ServiceModuleLoader.moduleServiceName(dependency));
        }
    }
    moduleSpec.setLocalLast(rootDeploymentSpecification.isLocalLast());

    if(rootDeploymentSpecification.getExcludedSubsystems() != null) {
        deploymentUnit.putAttachment(Attachments.EXCLUDED_SUBSYSTEMS, rootDeploymentSpecification.getExcludedSubsystems());
    }
}
 
开发者ID:wildfly,项目名称:wildfly-core,代码行数:40,代码来源:DeploymentStructureDescriptorParser.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java PdfWriter类代码示例发布时间:2022-05-22
下一篇:
Java SqlOperandCountRange类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap