01: /*
02: * @(#)init.java 1.2 04/12/06
03: *
04: * Copyright (c) 2004 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 org.pnuts.java_util;
10:
11: import pnuts.lang.Context;
12: import pnuts.ext.ModuleBase;
13:
14: /**
15: * Initialization of the java.util module
16: */
17: public class init extends ModuleBase {
18:
19: static String[] classNames = { "Date", "BitSet", "Calendar",
20: "Hashtable", "Vector", "Stack", "Map", "List", "Set",
21: "Collection", "Collections", "Arrays", "Random", "Locale",
22: "TimeZone", "Enumeration", "Iterator" };
23:
24: public Object execute(Context context) {
25: for (int i = 0; i < classNames.length; i++) {
26: autoloadClass("java.util", classNames[i], context);
27: }
28: return null;
29: }
30: }
|