01: /*
02: * @(#)init.java 1.4 05/04/20
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.jdbc;
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/jdbc/functions" };
20:
21: static String[][] functions = {
22: // pnuts/jdo/functions
23: { "openJDBC" },
24:
25: };
26:
27: static String[] requiredModules = { "pnuts.lib", "pnuts.util",
28: "pnuts.io", "pnuts.text" };
29:
30: protected String[] getRequiredModules() {
31: return requiredModules;
32: }
33:
34: public Object execute(Context context) {
35: for (int i = 0; i < files.length; i++) {
36: autoload(functions[i], files[i], context);
37: }
38: return null;
39: }
40: }
|