public static <T> T createProxyWrapper(Object target, Class<T> inf) { InvocationHandler h = new ReflectionInvokationHandler(target); return inf.cast(Proxy.newProxyInstance(inf.getClassLoader(), new Class<?>[] {inf}, h)); }
public static <T> T createProxyWrapper(Object target, Class<T> inf) { InvocationHandler h = new ReflectionInvokationHandler(target); return inf.cast(Proxy.newProxyInstance(inf.getClassLoader(), new Class<?>[] {inf}, h)); }
public static <T> T createProxyWrapper(Object target, Class<T> inf) { InvocationHandler h = new ReflectionInvokationHandler(target); return inf.cast(Proxy.newProxyInstance(inf.getClassLoader(), new Class[] {inf}, h)); }
public static final <T> T createProxyWrapper(Object target, Class<T> inf) { InvocationHandler h = new ReflectionInvokationHandler(target); return inf.cast(Proxy.newProxyInstance(inf.getClassLoader(), new Class[] {inf}, h)); }
public static <T> T createProxyWrapper(Object target, Class<T> inf) { InvocationHandler h = new ReflectionInvokationHandler(target); return inf.cast(Proxy.newProxyInstance(inf.getClassLoader(), new Class[] {inf}, h)); }
@Deprecated protected void setOldMethodDispatcherProperty() { //Try adding the MethodDispatcher using the old interface MethodDispatcher md = getMethodDispatcher(); if (getService().get("org.apache.cxf.frontend.MethodDispatcher") == null) { try { Class<?> cls = ClassLoaderUtils.loadClass("org.apache.cxf.frontend.MethodDispatcher", getClass()); Object o = Proxy.newProxyInstance(Thread.currentThread().getContextClassLoader(), new Class[] {cls}, new ReflectionInvokationHandler(md)); getService().put("org.apache.cxf.frontend.MethodDispatcher", o); } catch (Exception ex) { //ignore } } }
@Deprecated protected void setOldMethodDispatcherProperty() { //Try adding the MethodDispatcher using the old interface MethodDispatcher md = getMethodDispatcher(); if (getService().get("org.apache.cxf.frontend.MethodDispatcher") == null) { try { Class<?> cls = ClassLoaderUtils.loadClass("org.apache.cxf.frontend.MethodDispatcher", getClass()); Object o = Proxy.newProxyInstance(Thread.currentThread().getContextClassLoader(), new Class[] {cls}, new ReflectionInvokationHandler(md)); getService().put("org.apache.cxf.frontend.MethodDispatcher", o); } catch (Exception ex) { //ignore } } }