package org.jfox.mx.test;
import java.util.List;
import org.jfox.mx.Mxable;
import org.jfox.mx.MxServer;
import org.jfox.mx.ObjectName;
import org.jfox.mx.loading.MxLoading;
public class MxLoadingTest {
public static void main(String[] args) throws Exception {
MxServer server = MxServer.getInstance();
Mxable mxloading = server.createMX("org.jfox.mx.loading.MxLoading",new ObjectName(":class=MxLoading"));
MxLoading mxLoading = (MxLoading)mxloading.getSource();
List list = mxLoading.mx_loadMx("conf/mx-test.xml");
for(int i=0; i<list.size(); i++){
Mxable mx = (Mxable)list.get(i);
System.out.println(mx.getMxDescription());
}
}
}