public Object invoke(final Object rawProxy, final Method method, final Object... args) throws Exception { final T proxy = locatorRef.get().getViewType().cast(rawProxy); final EJBProxyInformation.ProxyMethodInfo methodInfo = locatorRef.get().getProxyInformation().getProxyMethodInfo(method); return invoke(proxy, methodInfo, args); }
/** * Perform an asynchronous invocation by method locator on a proxy, returning the future result. * * @param proxy the EJB proxy * @param methodLocator the method locator * @param args the invocation arguments * @param <T> the view type * @throws Exception if the invocation failed for some reason */ public static <T> Future<?> invokeAsync(T proxy, EJBMethodLocator methodLocator, Object... args) throws Exception { final EJBInvocationHandler<? extends T> invocationHandler = EJBInvocationHandler.forProxy(proxy); final EJBProxyInformation.ProxyMethodInfo proxyMethodInfo = invocationHandler.getProxyMethodInfo(methodLocator); return (Future<?>) invocationHandler.invoke(proxy, proxyMethodInfo, args); }
/** * Perform a one-way asynchronous invocation by method locator on a proxy. Any return value is ignored. * * @param proxy the EJB proxy * @param methodLocator the method locator * @param args the invocation arguments * @param <T> the view type * @throws Exception if the invocation failed for some reason */ public static <T> void invokeOneWay(T proxy, EJBMethodLocator methodLocator, Object... args) throws Exception { final EJBInvocationHandler<? extends T> invocationHandler = EJBInvocationHandler.forProxy(proxy); final EJBProxyInformation.ProxyMethodInfo proxyMethodInfo = invocationHandler.getProxyMethodInfo(methodLocator); invocationHandler.invoke(proxy, proxyMethodInfo, args); }
/** * Perform an invocation by method locator on a proxy, returning the result. * * @param proxy the EJB proxy * @param methodLocator the method locator * @param args the invocation arguments * @param <T> the view type * @throws Exception if the invocation failed for some reason */ public static <T> Object invoke(T proxy, EJBMethodLocator methodLocator, Object... args) throws Exception { final EJBInvocationHandler<? extends T> invocationHandler = EJBInvocationHandler.forProxy(proxy); final EJBProxyInformation.ProxyMethodInfo proxyMethodInfo = invocationHandler.getProxyMethodInfo(methodLocator); return invocationHandler.invoke(proxy, proxyMethodInfo, args); }
public Object invoke(final Object rawProxy, final Method method, final Object... args) throws Exception { final T proxy = locatorRef.get().getViewType().cast(rawProxy); final EJBProxyInformation.ProxyMethodInfo methodInfo = locatorRef.get().getProxyInformation().getProxyMethodInfo(method); return invoke(proxy, methodInfo, args); }
public Object invoke(final Object rawProxy, final Method method, final Object... args) throws Exception { final T proxy = locatorRef.get().getViewType().cast(rawProxy); final EJBProxyInformation.ProxyMethodInfo methodInfo = locatorRef.get().getProxyInformation().getProxyMethodInfo(method); return invoke(proxy, methodInfo, args); }
/** * Perform an invocation by method locator on a proxy, returning the result. * * @param proxy the EJB proxy * @param methodLocator the method locator * @param args the invocation arguments * @param <T> the view type * @throws Exception if the invocation failed for some reason */ public static <T> Object invoke(T proxy, EJBMethodLocator methodLocator, Object... args) throws Exception { final EJBInvocationHandler<? extends T> invocationHandler = EJBInvocationHandler.forProxy(proxy); final EJBProxyInformation.ProxyMethodInfo proxyMethodInfo = invocationHandler.getProxyMethodInfo(methodLocator); return invocationHandler.invoke(proxy, proxyMethodInfo, args); }
/** * Perform an asynchronous invocation by method locator on a proxy, returning the future result. * * @param proxy the EJB proxy * @param methodLocator the method locator * @param args the invocation arguments * @param <T> the view type * @throws Exception if the invocation failed for some reason */ public static <T> Future<?> invokeAsync(T proxy, EJBMethodLocator methodLocator, Object... args) throws Exception { final EJBInvocationHandler<? extends T> invocationHandler = EJBInvocationHandler.forProxy(proxy); final EJBProxyInformation.ProxyMethodInfo proxyMethodInfo = invocationHandler.getProxyMethodInfo(methodLocator); return (Future<?>) invocationHandler.invoke(proxy, proxyMethodInfo, args); }
/** * Perform a one-way asynchronous invocation by method locator on a proxy. Any return value is ignored. * * @param proxy the EJB proxy * @param methodLocator the method locator * @param args the invocation arguments * @param <T> the view type * @throws Exception if the invocation failed for some reason */ public static <T> void invokeOneWay(T proxy, EJBMethodLocator methodLocator, Object... args) throws Exception { final EJBInvocationHandler<? extends T> invocationHandler = EJBInvocationHandler.forProxy(proxy); final EJBProxyInformation.ProxyMethodInfo proxyMethodInfo = invocationHandler.getProxyMethodInfo(methodLocator); invocationHandler.invoke(proxy, proxyMethodInfo, args); }
/** * Perform an invocation by method locator on a proxy, returning the result. * * @param proxy the EJB proxy * @param methodLocator the method locator * @param args the invocation arguments * @param <T> the view type * @throws Exception if the invocation failed for some reason */ public static <T> Object invoke(T proxy, EJBMethodLocator methodLocator, Object... args) throws Exception { final EJBInvocationHandler<? extends T> invocationHandler = EJBInvocationHandler.forProxy(proxy); final EJBProxyInformation.ProxyMethodInfo proxyMethodInfo = invocationHandler.getProxyMethodInfo(methodLocator); return invocationHandler.invoke(proxy, proxyMethodInfo, args); }
/** * Perform a one-way asynchronous invocation by method locator on a proxy. Any return value is ignored. * * @param proxy the EJB proxy * @param methodLocator the method locator * @param args the invocation arguments * @param <T> the view type * @throws Exception if the invocation failed for some reason */ public static <T> void invokeOneWay(T proxy, EJBMethodLocator methodLocator, Object... args) throws Exception { final EJBInvocationHandler<? extends T> invocationHandler = EJBInvocationHandler.forProxy(proxy); final EJBProxyInformation.ProxyMethodInfo proxyMethodInfo = invocationHandler.getProxyMethodInfo(methodLocator); invocationHandler.invoke(proxy, proxyMethodInfo, args); }
/** * Perform an asynchronous invocation by method locator on a proxy, returning the future result. * * @param proxy the EJB proxy * @param methodLocator the method locator * @param args the invocation arguments * @param <T> the view type * @throws Exception if the invocation failed for some reason */ public static <T> Future<?> invokeAsync(T proxy, EJBMethodLocator methodLocator, Object... args) throws Exception { final EJBInvocationHandler<? extends T> invocationHandler = EJBInvocationHandler.forProxy(proxy); final EJBProxyInformation.ProxyMethodInfo proxyMethodInfo = invocationHandler.getProxyMethodInfo(methodLocator); return (Future<?>) invocationHandler.invoke(proxy, proxyMethodInfo, args); }