Package org.quartz.simpl

Examples of org.quartz.simpl.SimpleClassLoadHelper


    Class<? extends Job> supervisorClass = ERQSJobSupervisor.class;
    if (this.getClass().isAnnotationPresent(ERQSMySupervisor.class))
    {
      String supervisorClassPath = this.getClass().getAnnotation(ERQSMySupervisor.class).value();

      SimpleClassLoadHelper loader = new SimpleClassLoadHelper();
      try
      {
        supervisorClass = (Class<? extends Job>) loader.loadClass(supervisorClassPath);
      } catch (ClassNotFoundException e)
      {
        log.error("method: instantiateJobSupervisor: load class error for supervisorClass: " + supervisorClassPath, e);
      }
    }
View Full Code Here


    Class<? extends JobListener> jobListenerClass = ERQSJobListener.class;
    if (this.getClass().isAnnotationPresent(ERQSMyJobListener.class))
    {
      String jobListenerClassPath = this.getClass().getAnnotation(ERQSMyJobListener.class).value();

      SimpleClassLoadHelper loader = new SimpleClassLoadHelper();
      loader.initialize();
      try
      {
        jobListenerClass = (Class<? extends JobListener>) loader.loadClass(jobListenerClassPath);
      } catch (ClassNotFoundException e)
      {
        log.error("method: getDefaultJobListener: load class error for jobListenerClass: " + jobListenerClassPath, e);
      }
    }
View Full Code Here

  public static Job createJobInstance(final ERQSJobDescription jobDescription) throws COJobInstanciationException
  {
    if (jobDescription == null)
      throw new IllegalArgumentException("jobDescription can't be null");

    SimpleClassLoadHelper loader = new SimpleClassLoadHelper();
    Class<? extends Job> aJobClass = null;
    try
    {
      aJobClass = (Class<? extends Job>) loader.loadClass(jobDescription.classPath());
    } catch (ClassNotFoundException e)
    {
      throw new COJobInstanciationException("Class " + jobDescription.classPath() + " not found.", ErrorType.CLASS_NOT_FOUND);
    }
View Full Code Here

TOP

Related Classes of org.quartz.simpl.SimpleClassLoadHelper

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.