TestModuleManagerListener.java

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  * Title:        OpenMobileIS project source <BR>
00034  * Description:
00035  * @author      Philippe Delrieu
00036  * @since       JDK 1.1
00037  * @version 1.0.
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   /* (non-Javadoc)
00054    * @see org.openmobileis.module.core.ModuleManagerListener#notifyModuleLoading(org.openmobileis.module.core.ProfileModule)
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 }

Generated on Mon Dec 4 11:03:31 2006 for OpenMobileIS by  doxygen 1.5.1-p1