Class SyncManagerImpl

  • All Implemented Interfaces:
    SyncManager

    @Service
    public class SyncManagerImpl
    extends AbstractServiceTracker<SyncHandler>
    implements SyncManager
    SyncManagerImpl is used to manage registered sync handlers. This class automatically tracks the SyncHandlers that are registered via OSGi but can also be used in non-OSGi environments by manually adding and removing the handlers.
    • Constructor Detail

      • SyncManagerImpl

        public SyncManagerImpl()
        Default constructor used by OSGi
      • SyncManagerImpl

        public SyncManagerImpl​(Whiteboard whiteboard)
        Constructor used by non OSGi
        Parameters:
        whiteboard - the whiteboard
    • Method Detail

      • getSyncHandler

        public SyncHandler getSyncHandler​(@NotNull
                                          @NotNull java.lang.String name)
        Description copied from interface: SyncManager
        Returns the sync handler with the given name.
        Specified by:
        getSyncHandler in interface SyncManager
        Parameters:
        name - the name of the sync handler or null
        Returns:
        the sync handler