@SuppressWarnings("unchecked") public <T> T createDelegator(Object source, Class<T> apiInterface, Map<String, Object> extraFields) { return (T) Proxy.newProxyInstance( apiInterface.getClassLoader(), new Class[] { apiInterface }, new DelegateInvocationHandler(source, extraFields)); }
@SuppressWarnings("unchecked") public <T> T createDelegator(Object source, Class<T> apiInterface, Map<String, Object> extraFields) { return (T) Proxy.newProxyInstance( apiInterface.getClassLoader(), new Class[] { apiInterface }, new DelegateInvocationHandler(source, extraFields)); }
new Class[] { apiInterface }, new DelegateInvocationHandler(source, extraFields));
new Class[] { apiInterface }, new DelegateInvocationHandler(source, extraFields));
new Class[] { apiInterface }, new DelegateInvocationHandler(source, extraFields));