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 TypeMethodDescriptionbooleancanHandle(com.broadleafcommerce.data.tracking.core.tenant.service.ApplicationChangedEvent event) Determines whether this handler should respond to anApplicationChangedEvent.voidhandle(com.broadleafcommerce.data.tracking.core.tenant.service.ApplicationChangedEvent event) Responsible for executing actions in response to anApplicationChangedEventsuch as creating a defaultSandboxfor new applications.
-
Method Details
-
canHandle
boolean canHandle(@NonNull com.broadleafcommerce.data.tracking.core.tenant.service.ApplicationChangedEvent event) Determines whether this handler should respond to anApplicationChangedEvent.- Parameters:
event- A newApplicationChangedEventwith 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 anApplicationChangedEventsuch as creating a defaultSandboxfor new applications.- Parameters:
event- A newApplicationChangedEventwith information about the application that was changed.
-