2 Replies Latest reply on Aug 29, 2012 4:04 AM by drupalspring

    TaskService 's implemenation

      TaskService interface has 2 implementations , one is called LocalTaskService class and one is called SyncTaskServiceWrapper class.

       

      In the SyncTaskServiceWrapper class , it contains an instance of another interface called AsyncTaskService .

       

      All methods of the SyncTaskServiceWrapper that are specified by the TaskService interface will be delegated to AsyncTaskService .

       

      So SyncTaskServiceWrapper works asynchronously or synchronously?? It is confusing when looking at the name of the class .

       

      Is it better to rename SyncTaskServiceWrapper to AsyncTaskServiceWraper as it wraps AsyncTaskService ??