Package org.apache.naming.resources

Examples of org.apache.naming.resources.JARDirContext


            JarFile[] jars = jarRepository.findJars();
            for (int i = 0; i < jars.length; i++) {
                if (jars[i].getEntry(Globals.OVERLAY_PATH) != null) {
                    if (context.getResources() instanceof ProxyDirContext) {
                        ProxyDirContext resources = (ProxyDirContext) context.getResources();
                        JARDirContext overlay = new JARDirContext();
                        overlay.setJarFile(jars[i], Globals.OVERLAY_PATH);
                        resources.addOverlay(overlay);
                    } else {
                        // Error, overlays need a ProxyDirContext to compose results
                        log.error(sm.getString("contextConfig.noOverlay", jars[i].getName()));
                        ok = false;
View Full Code Here


            JarFile[] jars = jarRepository.findJars();
            for (int i = 0; i < jars.length; i++) {
                if (jars[i].getEntry(Globals.OVERLAY_PATH) != null) {
                    if (context.getResources() instanceof ProxyDirContext) {
                        ProxyDirContext resources = (ProxyDirContext) context.getResources();
                        JARDirContext overlay = new JARDirContext();
                        overlay.setJarFile(jars[i], Globals.OVERLAY_PATH);
                        resources.addOverlay(overlay);
                    } else {
                        // Error, overlays need a ProxyDirContext to compose results
                        log.error(sm.getString("contextConfig.noOverlay", jars[i].getName()));
                        ok = false;
View Full Code Here

            JarFile[] jars = jarRepository.findJars();
            for (int i = 0; i < jars.length; i++) {
                if (jars[i].getEntry(Globals.OVERLAY_PATH) != null) {
                    if (context.getResources() instanceof ProxyDirContext) {
                        ProxyDirContext resources = (ProxyDirContext) context.getResources();
                        JARDirContext overlay = new JARDirContext();
                        overlay.setJarFile(jars[i], Globals.OVERLAY_PATH);
                        resources.addOverlay(overlay);
                    } else {
                        // Error, overlays need a ProxyDirContext to compose results
                        log.error(sm.getString("contextConfig.noOverlay", jars[i].getName()));
                        ok = false;
View Full Code Here

            JarFile[] jars = jarRepository.findJars();
            for (int i = 0; i < jars.length; i++) {
                if (jars[i].getEntry(Globals.OVERLAY_PATH) != null) {
                    if (context.getResources() instanceof ProxyDirContext) {
                        ProxyDirContext resources = (ProxyDirContext) context.getResources();
                        JARDirContext overlay = new JARDirContext();
                        overlay.setJarFile(jars[i], Globals.OVERLAY_PATH);
                        resources.addOverlay(overlay);
                    } else {
                        // Error, overlays need a ProxyDirContext to compose results
                        log.error(sm.getString("contextConfig.noOverlay", jars[i].getName()));
                        ok = false;
View Full Code Here

TOP

Related Classes of org.apache.naming.resources.JARDirContext

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.