Class AbstractHomeUpdateHandler

java.lang.Object
com.atlassian.bitbucket.home.AbstractHomeUpdateHandler
All Implemented Interfaces:
HomeUpdateHandler

public abstract class AbstractHomeUpdateHandler extends Object implements HomeUpdateHandler
Provides a base class for implementing HomeUpdateHandlers.

Even if the implementation is going to provide a rollback implementation, it is still encouraged to extend from this base class. Doing so makes implementations more resilient to changes in the interface for HomeUpdateHandler, increasing their compatibility with different versions of the system.

  • Constructor Details

    • AbstractHomeUpdateHandler

      public AbstractHomeUpdateHandler()
  • Method Details

    • rollback

      public void rollback(@Nonnull HomeUpdate update)
      Provides a default no-op implementation to facilitate building handlers with no explicit rollback mechanism.
      Specified by:
      rollback in interface HomeUpdateHandler
      Parameters:
      update - ignored