Package 

Interface ICallbackNotifier


  • 
    public interface ICallbackNotifier<THandler extends Object>
    
                        

    A generic interface which indicates the implementer has the ability to callback through the generic THandler interface specified. When implemented, any outside component may set themselves to be the callback via set. When the callback is to be called, the implementor will call a method within THandler, the method(s) defined therein are entirely dependent on the implementor/definition.

    Unlike IEventNotifier, there can only be one zero or one callbacks at any given time.

    • Method Summary

      Modifier and Type Method Description
      abstract Unit set(THandler handler) Set the callback.
      abstract Boolean getHasCallback() Whether there is a callback currently set.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • set

         abstract Unit set(THandler handler)

        Set the callback.

        Parameters:
        handler - The handler that will be called when required.