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 TypeMethodDescriptionboolean
canHandle
(com.broadleafcommerce.data.tracking.core.tenant.service.ApplicationChangedEvent event) Determines whether this handler should respond to anApplicationChangedEvent
.void
handle
(com.broadleafcommerce.data.tracking.core.tenant.service.ApplicationChangedEvent event) Responsible for executing actions in response to anApplicationChangedEvent
such as creating a defaultSandbox
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 anApplicationChangedEvent
.- Parameters:
event
- A newApplicationChangedEvent
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 anApplicationChangedEvent
such as creating a defaultSandbox
for new applications.- Parameters:
event
- A newApplicationChangedEvent
with information about the application that was changed.
-