| Line | |
|---|
| 1 | package abcl_ae; |
|---|
| 2 | |
|---|
| 3 | import java.io.FileInputStream; |
|---|
| 4 | import java.io.IOException; |
|---|
| 5 | |
|---|
| 6 | import org.armedbear.lisp.Lisp; |
|---|
| 7 | import org.armedbear.lisp.Load; |
|---|
| 8 | import org.armedbear.lisp.Interpreter; |
|---|
| 9 | import org.armedbear.lisp.Symbol; |
|---|
| 10 | import org.armedbear.lisp.Pathname; |
|---|
| 11 | |
|---|
| 12 | public final class AbclInit { |
|---|
| 13 | static private Object lock = new Object(); |
|---|
| 14 | static private boolean initialized = false; |
|---|
| 15 | |
|---|
| 16 | // package access level |
|---|
| 17 | static void init() { |
|---|
| 18 | if (initialized) |
|---|
| 19 | return; |
|---|
| 20 | |
|---|
| 21 | synchronized (lock) { |
|---|
| 22 | if (initialized) |
|---|
| 23 | return; |
|---|
| 24 | |
|---|
| 25 | Interpreter.initializeLisp(); |
|---|
| 26 | Load.load("fasls/first-servlet.abcl"); |
|---|
| 27 | |
|---|
| 28 | initialized = true; |
|---|
| 29 | } |
|---|
| 30 | } |
|---|
| 31 | |
|---|
| 32 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.