Subversion Repository Public Repository

litesoft

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package org.litesoft.ddt;

public interface Shutdown {
    void request(int pExitCode);

    static class Instance {
        private static Shutdown SHUTDOWN;

        public static synchronized Shutdown get() {
            Shutdown zInstance = SHUTDOWN;
            if (zInstance != null) {
                return zInstance;
            }
            throw new IllegalStateException("Shutdown.Instance not initialized YET!");
        }

        public static synchronized void set(Shutdown pShutdown) {
            if (pShutdown == null) {
                throw new IllegalArgumentException("Shutdown.Instance may NOT be set to null!");
            }
            SHUTDOWN = pShutdown;
        }
    }
}

Commits for litesoft/trunk/DeviceDesktopTest/src/org/litesoft/ddt/Shutdown.java

Diff revisions: vs.
Revision Author Commited Message
922 Diff Diff GeorgeS picture GeorgeS Tue 18 Feb, 2014 16:18:01 +0000

Mini App ready for packaging...

920 GeorgeS picture GeorgeS Sun 16 Feb, 2014 19:06:51 +0000

DDT w/ Jetty