Examples of StandardClassLoader


Examples of org.apache.catalina.loader.StandardClassLoader

        if (classLoader == null) {
            return (null);
        }

        // Set up the Jasper class loader
        StandardClassLoader newLoader = new StandardClassLoader(classLoader);
        File directory = new File(System.getProperty("catalina.home"),
                                  "jasper");
        if (directory.exists() && directory.canRead() &&
            directory.isDirectory()) {
            String filenames[] = directory.list();
            for (int i = 0; i < filenames.length; i++) {
                if (!filenames[i].endsWith(".jar"))
                    continue;
                File file = new File(directory, filenames[i]);
                try {
                    URL url = new URL("file", null, file.getCanonicalPath());
                    newLoader.addRepository(url.toString());
                } catch (IOException e) {
                    throw new IllegalArgumentException(e.toString());
                }
            }
        }
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.