/** * only necessary when type params are not resolvable at runtime. */ public RestClientModule(TypeToken<S> syncClientType, TypeToken<A> asyncClientType, Map<Class<?>, Class<?>> sync2Async) { this.invocationModule = new SyncToAsyncHttpInvocationModule(sync2Async); this.syncClientType = checkBound(syncClientType); this.asyncClientType = checkBound(asyncClientType); }
/** * only necessary when type params are not resolvable at runtime. */ public RestClientModule(TypeToken<S> syncClientType, TypeToken<A> asyncClientType, Map<Class<?>, Class<?>> sync2Async) { this.invocationModule = new SyncToAsyncHttpInvocationModule(sync2Async); this.syncClientType = checkBound(syncClientType); this.asyncClientType = checkBound(asyncClientType); }
/** * only necessary when type params are not resolvable at runtime. */ public RestClientModule(TypeToken<S> syncClientType, TypeToken<A> asyncClientType, Map<Class<?>, Class<?>> sync2Async) { this.invocationModule = new SyncToAsyncHttpInvocationModule(sync2Async); this.syncClientType = checkBound(syncClientType); this.asyncClientType = checkBound(asyncClientType); }
/** * Note that this ctor requires that you instantiate w/resolved generic * params. For example, via a subclass of a bound type, or natural * instantiation w/resolved type params. */ @SuppressWarnings("unchecked") protected HttpApiModule() { this.api = Class.class.cast(checkBound(new TypeToken<A>(getClass()) { private static final long serialVersionUID = 1L; }).getRawType()); }
/** * Note that this ctor requires that you instantiate w/resolved generic * params. For example, via a subclass of a bound type, or natural * instantiation w/resolved type params. */ @SuppressWarnings("unchecked") protected HttpApiModule() { this.api = Class.class.cast(checkBound(new TypeToken<A>(getClass()) { private static final long serialVersionUID = 1L; }).getRawType()); }
/** * Note that this ctor requires that you instantiate w/resolved generic * params. For example, via a subclass of a bound type, or natural * instantiation w/resolved type params. */ @SuppressWarnings("unchecked") protected HttpApiModule() { this.api = Class.class.cast(checkBound(new TypeToken<A>(getClass()) { private static final long serialVersionUID = 1L; }).getRawType()); }
/** * Note that this ctor requires that you instantiate w/resolved generic * params. For example, via a subclass of a bound type, or natural * instantiation w/resolved type params. */ @SuppressWarnings("unchecked") protected HttpApiModule() { this.api = Class.class.cast(checkBound(new TypeToken<A>(getClass()) { private static final long serialVersionUID = 1L; }).getRawType()); }
/** * Note that this ctor requires that you instantiate w/resolved generic * params. For example, via a subclass of a bound type, or natural * instantiation w/resolved type params. */ @SuppressWarnings("unchecked") protected HttpApiModule() { this.api = Class.class.cast(checkBound(new TypeToken<A>(getClass()) { private static final long serialVersionUID = 1L; }).getRawType()); }
/** * Note that this ctor requires that you instantiate w/resolved generic * params. For example, via a subclass of a bound type, or natural * instantiation w/resolved type params. */ @SuppressWarnings("unchecked") protected HttpApiModule() { this.api = Class.class.cast(checkBound(new TypeToken<A>(getClass()) { private static final long serialVersionUID = 1L; }).getRawType()); }
/** * Note that this ctor requires that you instantiate w/resolved generic params. For example, via * a subclass of a bound type, or natural instantiation w/resolved type params. */ protected RestClientModule(Map<Class<?>, Class<?>> sync2Async) { this.invocationModule = new SyncToAsyncHttpInvocationModule(sync2Async); this.syncClientType = checkBound(new TypeToken<S>(getClass()) { private static final long serialVersionUID = 1L; }); this.asyncClientType = checkBound(new TypeToken<A>(getClass()) { private static final long serialVersionUID = 1L; }); }
/** * Note that this ctor requires that you instantiate w/resolved generic params. For example, via * a subclass of a bound type, or natural instantiation w/resolved type params. */ protected RestClientModule(Map<Class<?>, Class<?>> sync2Async) { this.invocationModule = new SyncToAsyncHttpInvocationModule(sync2Async); this.syncClientType = checkBound(new TypeToken<S>(getClass()) { private static final long serialVersionUID = 1L; }); this.asyncClientType = checkBound(new TypeToken<A>(getClass()) { private static final long serialVersionUID = 1L; }); }
/** * Note that this ctor requires that you instantiate w/resolved generic params. For example, via * a subclass of a bound type, or natural instantiation w/resolved type params. */ protected RestClientModule(Map<Class<?>, Class<?>> sync2Async) { this.invocationModule = new SyncToAsyncHttpInvocationModule(sync2Async); this.syncClientType = checkBound(new TypeToken<S>(getClass()) { private static final long serialVersionUID = 1L; }); this.asyncClientType = checkBound(new TypeToken<A>(getClass()) { private static final long serialVersionUID = 1L; }); }
/** * Note that this ctor requires that you instantiate w/resolved generic * params. For example, via a subclass of a bound type, or natural * instantiation w/resolved type params. */ @SuppressWarnings("unchecked") protected Builder() { this.api = Class.class.cast(checkBound(new TypeToken<A>(getClass()) { private static final long serialVersionUID = 1L; }).getRawType()); init(); }
/** * Note that this ctor requires that you instantiate w/resolved generic * params. For example, via a subclass of a bound type, or natural * instantiation w/resolved type params. */ @SuppressWarnings("unchecked") protected Builder() { this.api = Class.class.cast(checkBound(new TypeToken<A>(getClass()) { private static final long serialVersionUID = 1L; }).getRawType()); init(); }
/** * Note that this ctor requires that you instantiate w/resolved generic * params. For example, via a subclass of a bound type, or natural * instantiation w/resolved type params. */ @SuppressWarnings("unchecked") protected Builder() { this.api = Class.class.cast(checkBound(new TypeToken<A>(getClass()) { private static final long serialVersionUID = 1L; }).getRawType()); init(); }
/** * Note that this ctor requires that you instantiate w/resolved generic * params. For example, via a subclass of a bound type, or natural * instantiation w/resolved type params. */ @SuppressWarnings("unchecked") protected Builder() { this.api = Class.class.cast(checkBound(new TypeToken<A>(getClass()) { private static final long serialVersionUID = 1L; }).getRawType()); init(); }
/** * Note that this ctor requires that you instantiate w/resolved generic * params. For example, via a subclass of a bound type, or natural * instantiation w/resolved type params. */ @SuppressWarnings("unchecked") protected Builder() { this.api = Class.class.cast(checkBound(new TypeToken<A>(getClass()) { private static final long serialVersionUID = 1L; }).getRawType()); init(); }
/** * Note that this ctor requires that you instantiate w/resolved generic * params. For example, via a subclass of a bound type, or natural * instantiation w/resolved type params. */ @SuppressWarnings("unchecked") protected Builder() { this.api = Class.class.cast(checkBound(new TypeToken<A>(getClass()) { private static final long serialVersionUID = 1L; }).getRawType()); init(); }
@SuppressWarnings("unchecked") private Class<A> resolveApiClass() { return Class.class.cast(checkBound(new TypeToken<A>(getClass()) { private static final long serialVersionUID = 1L; }).getRawType()); }