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_net;
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 = { "URL", "URI", "Socket",
20: "ServerSocket", "MulticastSocket", "Authenticator",
21: "DatagramSocket", "DatagramPacket" };
22:
23: public Object execute(Context context) {
24: for (int i = 0; i < classNames.length; i++) {
25: autoloadClass("java.net", classNames[i], context);
26: }
27: return null;
28: }
29: }
|