com.syncbuilder.sync
Class DispatchSyncHandler

java.lang.Object
  |
  +--com.syncbuilder.sync.DispatchSyncHandler

public class DispatchSyncHandler
extends java.lang.Object
implements SyncHandler

A SyncHandler which is designed to provide the control-flow of a synchronization session. DispatchSyncHandler will identify the user of the connected Palm device, determine the current task-list of that user and then run the SyncHandlers which are listed in the task-list.


Constructor Summary
DispatchSyncHandler()
           
 
Method Summary
 void destroy()
          Free all resources.
 void init(SyncContext context)
          Initialize the SyncHandler.
 void service(SyncSession session, Link link)
          Service an incoming connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DispatchSyncHandler

public DispatchSyncHandler()
Method Detail

init

public void init(SyncContext context)
          throws java.lang.Exception
Initialize the SyncHandler. This method is guaranteed to be called exactly once before the SyncHandler is being used to handle incoming connections.
Specified by:
init in interface SyncHandler
Parameters:
context - a reference to the execution environment, which provides configuration data and logging facilities

service

public void service(SyncSession session,
                    Link link)
             throws java.lang.Exception
Service an incoming connection. This method is invoked everytime a device needs to be serviced.
Specified by:
service in interface SyncHandler
Parameters:
link - the Link to the Palm device which is associated with the connection
session - the session in which this service-request takes place

destroy

public void destroy()
             throws java.lang.Exception
Free all resources. This method will be invoked when the SyncHandler is no longer needed. The SyncHandler should free all the resources it possessed.
Specified by:
destroy in interface SyncHandler


This material is Copyrighted (C) 1999 by Tilo Christ. All Rights Reserved.