-
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 Unitset(THandler handler)Set the callback. abstract BooleangetHasCallback()Whether there is a callback currently set. -
-
Method Detail
-
set
abstract Unit set(THandler handler)
Set the callback.
- Parameters:
handler- The handler that will be called when required.
-
getHasCallback
abstract Boolean getHasCallback()
Whether there is a callback currently set.
-
-
-
-