Java 3D Desktop Environment旨在使用Java 3D来创建一个3D桌面环境。功能包括:分布式的应用程序
源代码在线查看: defaultapplicationlist.java
package org.j3de.server;
import java.util.Iterator;
import java.util.Hashtable;
import java.util.Map;
import org.w3c.dom.Node;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.j3de.interfaces.Application;
import org.j3de.util.AbstractComponent;
import org.j3de.util.ConfigHelper;
import org.j3de.util.ConfigurationException;
public class DefaultApplicationList extends AbstractComponent implements ApplicationList {
private static final String MAP_NAME = "ApplicationList";
private Map applications;
public DefaultApplicationList() {
applications = new Hashtable();
}
public ApplicationWrapper getApplication(String name) {
return (ApplicationWrapper)applications.get(name);
}
public Iterator getApplicationNames() {
return applications.keySet().iterator();
}
public void configure(Node node, Document nodeFactory) throws ConfigurationException {
super.configure(node, nodeFactory);
applications = helper.getComponentMap(MAP_NAME);
}
}