Interface SandboxApplicationChangeEventHandler

All Known Implementing Classes:
SandboxApplicationCreatedEventHandler

public interface SandboxApplicationChangeEventHandler
Classes implementing this interface handle ApplicationChangedEvents for the sandbox service. The default use-case is to create a default Sandbox for a newly created Application.
Author:
Nathan Moore (nathandmoore)
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canHandle(com.broadleafcommerce.data.tracking.core.tenant.service.ApplicationChangedEvent event)
    Determines whether this handler should respond to an ApplicationChangedEvent.
    void
    handle(com.broadleafcommerce.data.tracking.core.tenant.service.ApplicationChangedEvent event)
    Responsible for executing actions in response to an ApplicationChangedEvent such as creating a default Sandbox for new applications.
  • Method Details

    • canHandle

      boolean canHandle(@NonNull com.broadleafcommerce.data.tracking.core.tenant.service.ApplicationChangedEvent event)
      Determines whether this handler should respond to an ApplicationChangedEvent.
      Parameters:
      event - A new ApplicationChangedEvent with information about the application that was changed.
      Returns:
      whether this handler should respond to an ApplicationChangedEvent.
    • handle

      void handle(@NonNull com.broadleafcommerce.data.tracking.core.tenant.service.ApplicationChangedEvent event)
      Responsible for executing actions in response to an ApplicationChangedEvent such as creating a default Sandbox for new applications.
      Parameters:
      event - A new ApplicationChangedEvent with information about the application that was changed.