com.vodafone360.people.engine.contactsync
Class DefaultProcessorFactory

java.lang.Object
  extended by com.vodafone360.people.engine.contactsync.DefaultProcessorFactory
All Implemented Interfaces:
ProcessorFactory

public class DefaultProcessorFactory
extends java.lang.Object
implements ProcessorFactory

The DefaultProcessorFactory implements the ProcessorFactory interface and is the default factory used by the ContactSyncEngine.

See Also:
ProcessorFactory, ContactSyncEngine

Field Summary
 
Fields inherited from interface com.vodafone360.people.engine.contactsync.ProcessorFactory
DOWNLOAD_SERVER_CONTACTS, DOWNLOAD_SERVER_THUMBNAILS, FETCH_NATIVE_CONTACTS, SET_ME_PROFILE_STATUS, SYNC_ME_PROFILE, UPDATE_NATIVE_CONTACTS, UPLOAD_SERVER_CONTACTS, UPLOAD_SERVER_THUMBNAILS
 
Constructor Summary
DefaultProcessorFactory()
           
 
Method Summary
 BaseSyncProcessor create(int type, IContactSyncCallback callback, DatabaseHelper dbHelper, Context context, ContentResolver cr)
          Creates a suitable processor for a required contact sync activity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultProcessorFactory

public DefaultProcessorFactory()
Method Detail

create

public BaseSyncProcessor create(int type,
                                IContactSyncCallback callback,
                                DatabaseHelper dbHelper,
                                Context context,
                                ContentResolver cr)
Creates a suitable processor for a required contact sync activity.

Specified by:
create in interface ProcessorFactory
Parameters:
type - the type of the processor to create
callback - the observer of processor state
dbHelper - the database helper to use
context - the context to use
cr - the content resolver to use
Returns:
a BaseSyncProcessor implementation of the requested type
See Also:
ProcessorFactory.create(int, IContactSyncCallback, DatabaseHelper, Context, ContentResolver)


JavaDoc