Package org.jboss.gravia.resource

Examples of org.jboss.gravia.resource.ManifestResourceBuilder


        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) {
View Full Code Here


        ClassLoader classLoader = ApplicationActivator.class.getClassLoader();
        Manifest manifest = getWebappManifest(servletContext);
        if (manifest == null)
            return null;

        ResourceBuilder resbuilder = new ManifestResourceBuilder().load(manifest);
        if (resbuilder.isValid() == false)
            return null;

        AttachableSupport context = new AttachableSupport();
        context.putAttachment(TomcatRuntime.SERVLET_CONTEXT_KEY, servletContext);
View Full Code Here

            } catch (IOException ex) {
                throw new ProvisionException(ex);
            } finally {
                IOUtils.safeClose(jarFile);
            }
            builder = new ManifestResourceBuilder().load(manifest);
            headers = getManifestHeaders(manifest);
        }

        // Build the {@link Resource}
        builder.addContentCapability(contentURL);
View Full Code Here

        ResourceRoot deploymentRoot = depUnit.getAttachment(Attachments.DEPLOYMENT_ROOT);
        Manifest manifest = deploymentRoot != null ? deploymentRoot.getAttachment(Attachments.MANIFEST) : null;
        if (manifest == null)
            return;

        ManifestResourceBuilder builder = new ManifestResourceBuilder().load(manifest);
        if (builder.isValid()) {
            resource = builder.getResource();
            depUnit.putAttachment(GraviaConstants.RESOURCE_KEY, resource);
        }
    }
View Full Code Here

        ClassLoader classLoader = ApplicationActivator.class.getClassLoader();
        Manifest manifest = getWebappManifest(servletContext);
        if (manifest == null)
            return null;

        ResourceBuilder resbuilder = new ManifestResourceBuilder().load(manifest);
        if (resbuilder.isValid() == false)
            return null;

        Module module;
        try {
View Full Code Here

        Manifest manifest = getWebappManifest(servletContext);
        if (manifest == null)
            return null;

        ResourceBuilder resbuilder = new ManifestResourceBuilder().load(manifest);
        if (!resbuilder.isValid())
            return null;

        Resource resource = resbuilder.getResource();
View Full Code Here

        Manifest manifest = getWebappManifest(servletContext);
        if (manifest == null)
            return null;

        ResourceBuilder resbuilder = new ManifestResourceBuilder().load(manifest);
        if (!resbuilder.isValid())
            return null;

        Resource resource = resbuilder.getResource();
View Full Code Here

TOP

Related Classes of org.jboss.gravia.resource.ManifestResourceBuilder

Copyright © 2018 www.massapicom. 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.