Class ServiceInitialization


  • public final class ServiceInitialization
    extends Object
    Job for doing initialization work. Clients may use this job to do plug-in initialization work: managed servce activation, OSGi services registration, etc.
    • Method Detail

      • schedule

        public static void schedule​(Runnable task)
        Schedules a new initialization task.
        Parameters:
        task - the initialization task to execute, cannot be null
      • join

        public static void join()
        Waits until all tasks of the initialization job are finished. This method will block the calling thread until all such tasks have finished executing. If there are no tasks in the initialization job that are currently running this method returns immediately.