00001
00025 package org.openmobileis.test.bundle.profil;
00026
00027 import org.openmobileis.common.util.exception.ServiceException;
00028 import org.openmobileis.common.util.log.LogManager;
00029 import org.openmobileis.module.core.ProfileModule;
00030 import org.openmobileis.module.terminal.ModuleManagerListener;
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040 public final class TestModuleManagerListener implements ModuleManagerListener {
00041 public ProfileModule[] loadedModuleNames = new ProfileModule[10];
00042 public int currentIndex = 0;
00046 public TestModuleManagerListener() {
00047 }
00048
00049 public void initManager() throws ServiceException {
00050 LogManager.traceInfo(0, "TestModuleManagerListener initManager not tested");
00051 }
00052
00053
00054
00055
00056 public void notifyModuleLoading(ProfileModule module) throws ServiceException {
00057 loadedModuleNames[currentIndex++] = module;
00058 }
00059 public String getXMLInstallPath() {
00060 return System.getProperty("user.dir")+"/WEB-INF/module/xml";
00061
00062 }
00063 public String getJarInstallPath() {
00064 return System.getProperty("user.dir")+"/WEB-INF/module/jar";
00065 }
00066
00067 public void notifyModuleUpdate(ProfileModule module) throws ServiceException {
00068 LogManager.traceInfo(0, "TestModuleManagerListener notifyModuleUpdate not tested.");
00069 }
00070
00071 }