01: /*
02: * @(#)init.java 1.3 05/01/14
03: *
04: * Copyright (c) 2001-2003 Sun Microsystems, Inc. All Rights Reserved.
05: *
06: * See the file "LICENSE.txt" for information on usage and redistribution
07: * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
08: */
09: package pnuts.jdo;
10:
11: import pnuts.lang.Context;
12: import pnuts.ext.ModuleBase;
13:
14: /**
15: * Initialization of the pnuts.math module.
16: */
17: public class init extends ModuleBase {
18:
19: static String[] files = { "pnuts/jdo/functions" };
20:
21: static String[][] functions = {
22: // pnuts/jdo/functions
23: { "openJDO" },
24:
25: };
26:
27: static String[] requiredModules = { "pnuts.lib", "pnuts.beans" };
28:
29: protected String[] getRequiredModules() {
30: return requiredModules;
31: }
32:
33: public Object execute(Context context) {
34: for (int i = 0; i < files.length; i++) {
35: autoload(functions[i], files[i], context);
36: }
37: return null;
38: }
39: }
|