All Known Subinterfaces:
ContentCommandFactory
All Known Implementing Classes:
CommandFactoryImpl, ContentCommandFactoryImpl

public interface CommandFactory<M extends IncrementalSyncModel>
Common interface for Command creation
Since:
9.3.0
  • Method Details

    • createCommand

      <T> Optional<Command<T,M>> createCommand(Class<?> eventClass, T event)
      Create a Command based on input event
      Type Parameters:
      T -
      Parameters:
      eventClass -
      event -
      Returns:
    • createCommand

      Optional<Command<?,M>> createCommand(JournalEntry journalEntry)
      Create a Command based on input journal entry
      Parameters:
      journalEntry -
      Returns: