StatelessLocalProxypublic class StatelessLocalProxy extends org.jboss.ejb3.LocalProxy
Fields Summary |
---|
private static final long | serialVersionUID | org.jboss.aspects.asynch.AsynchProvider | provider |
Methods Summary |
---|
public java.lang.Object | getAsynchronousProxy(java.lang.Object proxy)
Class[] infs = proxy.getClass().getInterfaces();
if (!ProxyUtils.isAsynchronous(infs))
{
Class[] interfaces = ProxyUtils.addAsynchProviderInterface(infs);
AsynchMixin mixin = new AsynchMixin();
StatelessLocalProxy handler = new StatelessLocalProxy(mixin, container);
return Proxy.newProxyInstance(Thread.currentThread().getContextClassLoader(), interfaces, handler);
}
//I was already asynchronous
return proxy;
| public java.lang.Object | invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
if (method.getDeclaringClass() == AsynchProvider.class)
{
return provider.getFuture();
}
Object ret = ProxyUtils.handleCallLocally(proxy, this, method, args);
if (ret != null)
{
return ret;
}
if (container == null)
throw new EJBException("Invalid invocation of local interface (null container)");
StatelessContainer stateless = (StatelessContainer) container;
return stateless.localInvoke(method, args, (FutureHolder) provider);
| public java.lang.String | toString()
return container.getEjbName().toString();
|
|