Package org.jboss.as.web.deployment.helpers

Examples of org.jboss.as.web.deployment.helpers.VFSDirContext


            Set<VirtualFile> overlays = warMetaData.getOverlays();
            if (overlays != null) {
                if (context.getResources() instanceof ProxyDirContext) {
                    ProxyDirContext resources = (ProxyDirContext) context.getResources();
                    for (VirtualFile overlay : overlays) {
                        VFSDirContext dirContext = new VFSDirContext();
                        dirContext.setVirtualFile(overlay);
                        resources.addOverlay(dirContext);
                    }
                } else if (overlays.size() > 0) {
                    // Error, overlays need a ProxyDirContext to compose results
                    WebLogger.WEB_LOGGER.noOverlay(context.getName());
                    ok = false;
                }
            }
        }

        // Add other overlays, if any
        if (ok) {
            for (String overlay : overlays) {
                if (context.getResources() instanceof ProxyDirContext) {
                    ProxyDirContext resources = (ProxyDirContext) context.getResources();
                    FileDirContext dirContext = new FileDirContext();
                    dirContext.setDocBase(overlay);
                    resources.addOverlay(dirContext);
                }
            }
        }
View Full Code Here

TOP

Related Classes of org.jboss.as.web.deployment.helpers.VFSDirContext

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.