code: public void initialize (final String name,
                            final IScheduler scheduler,
                            final IClassLoadHelper classLoadHelper) throws SchedulerException
    {
  
      LOGGER.info ("Registering Quartz shutdown hook.");
  
      final Thread t = new Thread ("Quartz Shutdown-Hook " + scheduler.getSchedulerName ())
      {
        @Override
        public void run ()
        {
          LOGGER.info ("Shutting down Quartz...");
          try
          {
            scheduler.shutdown (isCleanShutdown ());
          }
          catch (final SchedulerException e)
          {
            LOGGER.info ("Error shutting down Quartz: " + e.getMessage (), e);
          }
        }
      };
  
      Runtime.getRuntime ().addShutdownHook (t);
    }
docs: <p>
  Called during creation of the <code>Scheduler</code> in order to give the
  <code>SchedulerPlugin</code> a chance to initialize.
  </p>
  
  @throws SchedulerConfigException
  if there is an error initializing.