Last change
on this file since 14125 was 14125, checked in by Don-vip, 6 years ago |
see #15229 - extract lifecycle Main classes to a new lifecycle SPI
|
-
Property svn:eol-style
set to
native
|
File size:
806 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.spi.lifecycle;
|
---|
3 |
|
---|
4 | import java.util.Objects;
|
---|
5 |
|
---|
6 | /**
|
---|
7 | * JOSM lifecycle.
|
---|
8 | * @since xxx
|
---|
9 | */
|
---|
10 | public final class Lifecycle {
|
---|
11 |
|
---|
12 | private static volatile InitStatusListener initStatusListener;
|
---|
13 |
|
---|
14 | private Lifecycle() {
|
---|
15 | // Hide constructor
|
---|
16 | }
|
---|
17 |
|
---|
18 | /**
|
---|
19 | * Gets initialization task listener.
|
---|
20 | * @return initialization task listener
|
---|
21 | */
|
---|
22 | public static InitStatusListener getInitStatusListener() {
|
---|
23 | return initStatusListener;
|
---|
24 | }
|
---|
25 |
|
---|
26 | /**
|
---|
27 | * Sets initialization task listener.
|
---|
28 | * @param listener initialization task listener. Must not be null
|
---|
29 | */
|
---|
30 | public static void setInitStatusListener(InitStatusListener listener) {
|
---|
31 | initStatusListener = Objects.requireNonNull(listener);
|
---|
32 | }
|
---|
33 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.