Interface BaseDelegate<T extends BaseDelegate<? extends T>>

  • All Known Subinterfaces:
    All Known Implementing Classes:
    ExecutorFactory, FrameStack, RuleExecutorFactory

    public interface BaseDelegate<T extends BaseDelegate<? extends T>>
    Convenience interface for classes which may have a parent ("base") in order to delegate failed operations to (for example, variable lookups). Please note that such a strategy requires synchronisation or immutability in concurrent use cases. For example, if a collection in the parent is modified when a lookup is being delegated by a child, this can lead to ConcurrentModificationException. To mitigate this, a synchronized version of delegate methods are provided.
    Sina Madani