Package com._1c.g5.wiring
Class ServiceInitialization
- java.lang.Object
-
- com._1c.g5.wiring.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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
join()
Waits until all tasks of the initialization job are finished.static void
schedule(Runnable task)
Schedules a new initialization task.
-
-
-
Method Detail
-
schedule
public static void schedule(Runnable task)
Schedules a new initialization task.- Parameters:
task
- the initialization task to execute, cannot benull
-
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.
-
-