Package org.exist.start

Examples of org.exist.start.Classpath


    public static void updateClasspath(BrokerPool pool) {
        final ClassLoader loader = pool.getClassLoader();
        if (!(loader instanceof EXistClassLoader))
            {return;}
        final Classpath cp = new Classpath();
        scanPackages(pool, cp);
        ((EXistClassLoader)loader).addURLs(cp);
    }
View Full Code Here


        final ClassLoader loader = pool.getClassLoader();
        if (!(loader instanceof EXistClassLoader))
            {return;}
        final FileSystemStorage.FileSystemResolver resolver = (FileSystemStorage.FileSystemResolver) pkg.getResolver();
        final File packageDir = resolver.resolveResourceAsFile(".");
        final Classpath cp = new Classpath();
        try {
            scanPackageDir(cp, packageDir);
            ((EXistClassLoader)loader).addURLs(cp);
        } catch (final IOException e) {
            LOG.warn("An error occurred while updating classpath for package " + pkg.getName(), e);
View Full Code Here

    try {
      // use the bootstrap loader to autodetect EXIST_HOME and
      // construct a correct classpath
      org.exist.start.Main loader = new org.exist.start.Main(args[0]);
      File homeDir = loader.detectHome();
      Classpath classpath = loader.constructClasspath(homeDir, args);
      ClassLoader cl = classpath.getClassLoader(null);
      Thread.currentThread().setContextClassLoader(cl);

      klazz = cl.loadClass("org.exist.jetty.JettyStart");
     
      // find the run() method in the class
View Full Code Here

TOP

Related Classes of org.exist.start.Classpath

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.