接口 JobLoader

    • 方法详细资料

      • reload

        java.util.Collection<Jobreload​(ApplicationContextFactory factory)
        Load an application context and register all the jobs, having first unregistered them if already registered. Implementations should also take care to close and clean up the application context previously created if possible (either from this factory or from one with the same jobs).
        参数:
        factory - a factory for an application context (containing jobs)
        返回:
        a collection of the jobs created
      • clear

        void clear()
        Unregister all the jobs and close all the contexts created by this loader.