Class CompoundCallbackHandler

java.lang.Object
ch.tocco.nice2.dbrefactoring.api.callback.CompoundCallbackHandler
All Implemented Interfaces:
CallbackHandler

public class CompoundCallbackHandler extends Object implements CallbackHandler
A compound callback handler allowing to add several CallbackHandlers that are applied to incoming callbacks in non-deterministic order.
  • Constructor Details

    • CompoundCallbackHandler

      public CompoundCallbackHandler(CallbackHandler... handler)
  • Method Details

    • addHandler

      public void addHandler(CallbackHandler handler)
    • handle

      public void handle(Callback[] callbacks)
      Description copied from interface: CallbackHandler
      The callback objects from the installation routine are passed to this handler. A callback might ask for additional information required for installing or just informs the caller. The Callback interface is a marker interface, so you need to check for concrete subclasses.
      Specified by:
      handle in interface CallbackHandler