org.openmobileis.bundle.coldupdate.terminal
Class ColdUpdateModuleManagerListener

java.lang.Object
  extended byorg.openmobileis.synchro.openmsp.client.EmptyOpenMSPSyncListener
      extended byorg.openmobileis.bundle.coldupdate.terminal.ColdUpdateModuleManagerListener
All Implemented Interfaces:
ModuleManagerListener, OpenMSPSyncListener

public final class ColdUpdateModuleManagerListener
extends EmptyOpenMSPSyncListener
implements ModuleManagerListener

Author:
phil

Field Summary
 
Fields inherited from interface org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener
SYNCHRO_FAILLED, SYNCHRO_OK
 
Constructor Summary
ColdUpdateModuleManagerListener()
           
 
Method Summary
 void endSync()
          Fire this event once the current synchro is ended
 java.lang.String getJarInstallPath()
          return the path where module jar must be stored.
 java.lang.String getSyncName()
          Return the name used to identiy the of the listener in the synchro processus.
 java.lang.String getXMLInstallPath()
           
 void initManager()
          call during module management init.
 void notifyModuleLoading(ProfileModule module)
          call when a new module must be loaded.
 void notifyModuleUpdate(ProfileModule module)
          call when a module has been updated by the synchro.
 void startSync(Credential cred, SynchroDescriptor synchrodescriptor)
          Fire this event once a synchro is starting
 
Methods inherited from class org.openmobileis.synchro.openmsp.client.EmptyOpenMSPSyncListener
getSynchroStatus, initListener, isSyncOK, notifySynchroFailure, receiveGetCommand, receiveMapCommand, receiveResultCommand, receiveStatusCommand, receiveSyncCommand, sendData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColdUpdateModuleManagerListener

public ColdUpdateModuleManagerListener()
Method Detail

initManager

public void initManager()
                 throws ServiceException
Description copied from interface: ModuleManagerListener
call during module management init. Do all init needed before module loading.

Specified by:
initManager in interface ModuleManagerListener
Throws:
ServiceException

getSyncName

public java.lang.String getSyncName()
Return the name used to identiy the of the listener in the synchro processus. This name correspond to the source in the OpenMS protocol.

Specified by:
getSyncName in interface OpenMSPSyncListener

getJarInstallPath

public java.lang.String getJarInstallPath()
Description copied from interface: ModuleManagerListener
return the path where module jar must be stored.

Specified by:
getJarInstallPath in interface ModuleManagerListener
Returns:

getXMLInstallPath

public java.lang.String getXMLInstallPath()

notifyModuleLoading

public void notifyModuleLoading(ProfileModule module)
                         throws ServiceException
Description copied from interface: ModuleManagerListener
call when a new module must be loaded. Do all the module loading.

Specified by:
notifyModuleLoading in interface ModuleManagerListener
Parameters:
module -
Throws:
ServiceException

notifyModuleUpdate

public void notifyModuleUpdate(ProfileModule module)
                        throws ServiceException
Description copied from interface: ModuleManagerListener
call when a module has been updated by the synchro.

Specified by:
notifyModuleUpdate in interface ModuleManagerListener
Parameters:
module -
Throws:
ServiceException

startSync

public void startSync(Credential cred,
                      SynchroDescriptor synchrodescriptor)
               throws OpenMSPException
Description copied from interface: OpenMSPSyncListener
Fire this event once a synchro is starting

Specified by:
startSync in interface OpenMSPSyncListener
Overrides:
startSync in class EmptyOpenMSPSyncListener
Throws:
OpenMSPException

endSync

public void endSync()
             throws OpenMSPException
Description copied from interface: OpenMSPSyncListener
Fire this event once the current synchro is ended

Specified by:
endSync in interface OpenMSPSyncListener
Overrides:
endSync in class EmptyOpenMSPSyncListener
Throws:
OpenMSPException


Copyright 2006 OpenMobileIS. All Rights Reserved.