Examples of MountHandle


Examples of org.jboss.as.server.deployment.module.MountHandle

                libDir = virtualFile.getChild(libDirName);
                if (libDir.exists()) {
                    List<VirtualFile> libArchives = libDir.getChildren(CHILD_ARCHIVE_FILTER);
                    for (final VirtualFile child : libArchives) {
                        final Closeable closable = child.isFile() ? mount(child, false) : null;
                        final MountHandle mountHandle = new MountHandle(closable);
                        final ResourceRoot childResource = new ResourceRoot(child, mountHandle);
                        if (child.getName().toLowerCase().endsWith(JAR_EXTENSION)) {
                            ModuleRootMarker.mark(childResource);
                            deploymentUnit.addToAttachmentList(Attachments.RESOURCE_ROOTS, childResource);
                        }
View Full Code Here

Examples of org.jboss.as.server.deployment.module.MountHandle

     * @throws IOException
     */
    private ResourceRoot createResourceRoot(final DeploymentUnit deploymentUnit, final VirtualFile file, final boolean markAsSubDeployment, final boolean explodeDuringMount) throws IOException {
        final boolean war = file.getName().toLowerCase(Locale.ENGLISH).endsWith(WAR_EXTENSION);
        final Closeable closable = file.isFile() ? mount(file, explodeDuringMount) : null;
        final MountHandle mountHandle = new MountHandle(closable);
        final ResourceRoot resourceRoot = new ResourceRoot(file, mountHandle);
        deploymentUnit.addToAttachmentList(Attachments.RESOURCE_ROOTS, resourceRoot);
        if (markAsSubDeployment) {
            SubDeploymentMarker.mark(resourceRoot);
        }
View Full Code Here

Examples of org.jboss.as.server.deployment.module.MountHandle

        }

        // Create the {@link OSGiDeploymentService}
        if (deployment != null) {
            // Prevent garbage collection of the MountHandle which will close the file
            MountHandle mount = deploymentUnit.getAttachment(Attachments.DEPLOYMENT_ROOT).getMountHandle();
            deployment.addAttachment(MountHandle.class, mount);
            deployment.setAutoStart(autoStart);
            OSGiDeploymentService.addService(phaseContext, deployment);
        }
    }
View Full Code Here

Examples of org.jboss.as.server.deployment.module.MountHandle

                libDir = virtualFile.getChild(libDirName);
                if (libDir.exists()) {
                    List<VirtualFile> libArchives = libDir.getChildren(CHILD_ARCHIVE_FILTER);
                    for (final VirtualFile child : libArchives) {
                        final Closeable closable = child.isFile() ? mount(child, false) : null;
                        final MountHandle mountHandle = new MountHandle(closable);
                        final ResourceRoot childResource = new ResourceRoot(child, mountHandle);
                        if (child.getName().toLowerCase(Locale.ENGLISH).endsWith(JAR_EXTENSION)) {
                            ModuleRootMarker.mark(childResource);
                            deploymentUnit.addToAttachmentList(Attachments.RESOURCE_ROOTS, childResource);
                        }
View Full Code Here

Examples of org.jboss.as.server.deployment.module.MountHandle

     * @throws IOException
     */
    private ResourceRoot createResourceRoot(final DeploymentUnit deploymentUnit, final VirtualFile file, final boolean markAsSubDeployment, final boolean explodeDuringMount) throws IOException {
        final boolean war = file.getName().toLowerCase(Locale.ENGLISH).endsWith(WAR_EXTENSION);
        final Closeable closable = file.isFile() ? mount(file, explodeDuringMount) : null;
        final MountHandle mountHandle = new MountHandle(closable);
        final ResourceRoot resourceRoot = new ResourceRoot(file, mountHandle);
        deploymentUnit.addToAttachmentList(Attachments.RESOURCE_ROOTS, resourceRoot);
        if (markAsSubDeployment) {
            SubDeploymentMarker.mark(resourceRoot);
        }
View Full Code Here

Examples of org.jboss.as.server.deployment.module.MountHandle

                        final ResourceRoot deploymentRoot = deploymentUnit.getAttachment(Attachments.DEPLOYMENT_ROOT);
                        final VirtualFile deploymentRootFile = deploymentRoot.getRoot();
                        final VirtualFile child = deploymentRootFile.getChild(path);
                        final Closeable closable = child.isFile() ? VFS.mountZip(child, child, TempFileProviderService
                                .provider()) : null;
                        final MountHandle mountHandle = new MountHandle(closable);
                        final ResourceRoot resourceRoot = new ResourceRoot(name, child, mountHandle);
                        for (final FilterSpecification filter : resourceFilters) {
                            resourceRoot.getExportFilters().add(filter);
                        }
                        resourceRoot.setUsePhysicalCodeSource(usePhysicalCodeSource);
View Full Code Here

Examples of org.jboss.as.server.deployment.module.MountHandle

                            final ResourceRoot deploymentRoot = deploymentUnit.getAttachment(Attachments.DEPLOYMENT_ROOT);
                            final VirtualFile deploymentRootFile = deploymentRoot.getRoot();
                            VirtualFile child = deploymentRootFile.getChild(path);
                            final Closeable closable = child.isFile() ? VFS.mountZip(child, child, TempFileProviderService
                                    .provider()) : null;
                            final MountHandle mountHandle = new MountHandle(closable);
                            ResourceRoot resourceRoot = new ResourceRoot(name, child, mountHandle);
                            for (FilterSpecification filter : resourceFilters) {
                                resourceRoot.getExportFilters().add(filter);
                            }
                            specBuilder.addResourceRoot(resourceRoot);
View Full Code Here

Examples of org.jboss.as.server.deployment.module.MountHandle

                        final ResourceRoot deploymentRoot = deploymentUnit.getAttachment(Attachments.DEPLOYMENT_ROOT);
                        final VirtualFile deploymentRootFile = deploymentRoot.getRoot();
                        final VirtualFile child = deploymentRootFile.getChild(path);
                        final Closeable closable = child.isFile() ? VFS.mountZip(child, child, TempFileProviderService
                                .provider()) : null;
                        final MountHandle mountHandle = new MountHandle(closable);
                        final ResourceRoot resourceRoot = new ResourceRoot(name, child, mountHandle);
                        for (final FilterSpecification filter : resourceFilters) {
                            resourceRoot.getExportFilters().add(filter);
                        }
                        resourceRoot.setUsePhysicalCodeSource(usePhysicalCodeSource);
View Full Code Here

Examples of org.jboss.as.server.deployment.module.MountHandle

                        final ResourceRoot deploymentRoot = deploymentUnit.getAttachment(Attachments.DEPLOYMENT_ROOT);
                        final VirtualFile deploymentRootFile = deploymentRoot.getRoot();
                        final VirtualFile child = deploymentRootFile.getChild(path);
                        final Closeable closable = child.isFile() ? VFS.mountZip(child, child, TempFileProviderService
                                .provider()) : null;
                        final MountHandle mountHandle = new MountHandle(closable);
                        final ResourceRoot resourceRoot = new ResourceRoot(name, child, mountHandle);
                        for (final FilterSpecification filter : resourceFilters) {
                            resourceRoot.getExportFilters().add(filter);
                        }
                        resourceRoot.setUsePhysicalCodeSource(usePhysicalCodeSource);
View Full Code Here

Examples of org.jboss.as.server.deployment.module.MountHandle

                        final ResourceRoot deploymentRoot = deploymentUnit.getAttachment(Attachments.DEPLOYMENT_ROOT);
                        final VirtualFile deploymentRootFile = deploymentRoot.getRoot();
                        final VirtualFile child = deploymentRootFile.getChild(path);
                        final Closeable closable = child.isFile() ? VFS.mountZip(child, child, TempFileProviderService
                                .provider()) : null;
                        final MountHandle mountHandle = new MountHandle(closable);
                        final ResourceRoot resourceRoot = new ResourceRoot(name, child, mountHandle);
                        for (final FilterSpecification filter : resourceFilters) {
                            resourceRoot.getExportFilters().add(filter);
                        }
                        resourceRoot.setUsePhysicalCodeSource(usePhysicalCodeSource);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.