Interface PropagationHandler

  • All Superinterfaces:
    org.springframework.core.Ordered, PropagationAware
    All Known Implementing Classes:
    DefaultPropagationHandler, VendorSandboxPropagationHandler

    public interface PropagationHandler
    extends PropagationAware, org.springframework.core.Ordered
    Perform catalog propagation of entity changes post deployment, iterating through the catalog inheritance hierarchy. Handlers participate as part of the operation of PropagationManager. Handlers are ordered in the manager component, and the first handler capable of handling the request for propagation wins and other handlers are ignored. Altered, or special propagation behavior may be introduced in this way by adding handlers with higher precedence ordering.
    Author:
    Jeff Fischer
    • Method Detail

      • canHandle

        boolean canHandle​(Trackable incoming,
                          String incomingCatalog,
                          String parentCatalog,
                          @Nullable
                          Trackable candidate,
                          OperationType changeType)
        Is this handler capable of handling the propagation process given the contextual information.
        Parameters:
        incoming - The Trackable instance that contains the change information to propagate
        incomingCatalog - The current catalog in which the propagation is occuring
        parentCatalog - The parent catalog up one level
        candidate - The candidate, if available, representing a catalog override already existing in the incomingCatalog.
        changeType - The type of change requested. See OperationType.
        Returns:
        Is this handler capable of handling the propagation process
      • getOrder

        default int getOrder()
        Specified by:
        getOrder in interface org.springframework.core.Ordered