Package org.openstreetmap.josm.gui
Class MainInitialization
- java.lang.Object
-
- org.openstreetmap.josm.gui.MainInitialization
-
- All Implemented Interfaces:
InitializationSequence
public class MainInitialization extends java.lang.Object implements InitializationSequence
JOSM initialization sequence.- Since:
- 14139
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
MainInitialization.JosmSettingsAdapter
-
Field Summary
Fields Modifier and Type Field Description private MainApplication
application
-
Constructor Summary
Constructors Constructor Description MainInitialization(MainApplication application)
Constructs a newMainInitialization
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<InitializationTask>
afterInitializationTasks()
Returns tasks that must be run after parallel tasks.java.util.List<java.util.concurrent.Callable<?>>
asynchronousCallableTasks()
Returns asynchronous callable initializations to be completed eventuallyjava.util.List<java.lang.Runnable>
asynchronousRunnableTasks()
Returns asynchronous runnable initializations to be completed eventuallyjava.util.List<InitializationTask>
beforeInitializationTasks()
Returns tasks that must be run before parallel tasks.java.util.Collection<InitializationTask>
parallelInitializationTasks()
Returns tasks to be executed (in parallel) by a ExecutorService.
-
-
-
Field Detail
-
application
private final MainApplication application
-
-
Constructor Detail
-
MainInitialization
public MainInitialization(MainApplication application)
Constructs a newMainInitialization
- Parameters:
application
- Main application. Must not be null
-
-
Method Detail
-
beforeInitializationTasks
public java.util.List<InitializationTask> beforeInitializationTasks()
Description copied from interface:InitializationSequence
Returns tasks that must be run before parallel tasks.- Specified by:
beforeInitializationTasks
in interfaceInitializationSequence
- Returns:
- tasks that must be run before parallel tasks
- See Also:
InitializationSequence.afterInitializationTasks()
,InitializationSequence.parallelInitializationTasks()
-
parallelInitializationTasks
public java.util.Collection<InitializationTask> parallelInitializationTasks()
Description copied from interface:InitializationSequence
Returns tasks to be executed (in parallel) by a ExecutorService.- Specified by:
parallelInitializationTasks
in interfaceInitializationSequence
- Returns:
- tasks to be executed (in parallel) by a ExecutorService
-
asynchronousCallableTasks
public java.util.List<java.util.concurrent.Callable<?>> asynchronousCallableTasks()
Description copied from interface:InitializationSequence
Returns asynchronous callable initializations to be completed eventually- Specified by:
asynchronousCallableTasks
in interfaceInitializationSequence
- Returns:
- asynchronous callable initializations to be completed eventually
-
asynchronousRunnableTasks
public java.util.List<java.lang.Runnable> asynchronousRunnableTasks()
Description copied from interface:InitializationSequence
Returns asynchronous runnable initializations to be completed eventually- Specified by:
asynchronousRunnableTasks
in interfaceInitializationSequence
- Returns:
- asynchronous runnable initializations to be completed eventually
-
afterInitializationTasks
public java.util.List<InitializationTask> afterInitializationTasks()
Description copied from interface:InitializationSequence
Returns tasks that must be run after parallel tasks.- Specified by:
afterInitializationTasks
in interfaceInitializationSequence
- Returns:
- tasks that must be run after parallel tasks
- See Also:
InitializationSequence.beforeInitializationTasks()
,InitializationSequence.parallelInitializationTasks()
-
-