Package ch.entwine.weblounge.common.impl.util.classloader

Examples of ch.entwine.weblounge.common.impl.util.classloader.BundleClassLoader


      // Start loading the site in a new thread in order to enable parallel
      // loading of sites
      Thread siteLoader = new Thread() {
        public void run() {
          final BundleClassLoader bundleClassLoader = new BundleClassLoader(bundleContext.getBundle());
          try {
            ContextClassLoaderUtils.doWithClassLoader(bundleClassLoader, new Callable<Void>() {
              public Void call() throws Exception {

                logger.info("Loading site from bundle '{}'", bundleName);
View Full Code Here


    synchronized (jobs) {

      // Set up the job detail
      JobDataMap jobData = new JobDataMap();
      jobData.put(QuartzJobWorker.CLASS, jobClass);
      jobData.put(QuartzJobWorker.CLASS_LOADER, new BundleClassLoader(bundleContext.getBundle()));
      jobData.put(QuartzJobWorker.CONTEXT, job.getContext());
      job.getContext().put(Site.class.getName(), this);
      job.getContext().put(BundleContext.class.getName(), bundleContext);
      JobDetail jobDetail = new JobDetail(jobIdentifier, groupName, QuartzJobWorker.class);
      jobDetail.setJobDataMap(jobData);
View Full Code Here

TOP

Related Classes of ch.entwine.weblounge.common.impl.util.classloader.BundleClassLoader

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.