All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.englishtown.promises.internal.handlers.DelegateHandler Maven / Gradle / Ivy

The newest version!
package com.englishtown.promises.internal.handlers;

import com.englishtown.promises.State;
import com.englishtown.promises.internal.PromiseHelper;

/**
 * Abstract base for handler that delegates to another handler
 */
public abstract class DelegateHandler extends Handler {

    protected DelegateHandler(Handler handler, PromiseHelper helper) {
        super(helper);
        this.handler = handler;
    }

    @Override
    public State inspect() {
        return this.join().inspect();
    }

    @Override
    protected void _report(Object context) {
        this.join()._report(context);
    }

    @Override
    protected void _unreport() {
        this.join()._unreport();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy