类 AdaptableJobFactory

    • 方法详细资料

      • createJobInstance

        protected Object createJobInstance​(TriggerFiredBundle bundle)
                                    throws Exception
        Create an instance of the specified job class.

        Can be overridden to post-process the job instance.

        参数:
        bundle - the TriggerFiredBundle from which the JobDetail and other info relating to the trigger firing can be obtained
        返回:
        the job instance
        抛出:
        Exception - if job instantiation failed
      • adaptJob

        protected Job adaptJob​(Object jobObject)
                        throws Exception
        Adapt the given job object to the Quartz Job interface.

        The default implementation supports straight Quartz Jobs as well as Runnables, which get wrapped in a DelegatingJob.

        参数:
        jobObject - the original instance of the specified job class
        返回:
        the adapted Quartz Job instance
        抛出:
        Exception - if the given job could not be adapted
        另请参阅:
        DelegatingJob