Skip to content
This repository was archived by the owner on May 28, 2018. It is now read-only.

Changeable invokers for Proxy client #3544

Open
wants to merge 2 commits into
base: 2.x
Choose a base branch
from
Open

Conversation

alex-shpak
Copy link

@alex-shpak alex-shpak commented Apr 26, 2017

Hi,

This PR will add ResourceMethodInvoker for proxy client factory.
This will allow to substitute client invocation for example to support RxJava proxy client like here
Example:

class RxResourceMethodInvoker implements ResourceMethodInvoker<RxInvocationBuilder> {

    @Override
    public <T> T method(RxInvocationBuilder builder, String name, GenericType<T> responseType) {
        return builder.rx().method...;
    }

    @Override
    public <T> T method(RxInvocationBuilder builder, String name, Entity<?> entity, GenericType<T> responseType) {
        return builder.rx().method...;
    }
}

OCA is signed and sent.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants