ServiceLocalProxypublic class ServiceLocalProxy 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();
ServiceLocalProxy handler = new ServiceLocalProxy(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((JBossProxy) proxy, this, method, args);
if (ret != null)
{
return ret;
}
ServiceContainer sc = (ServiceContainer) container;
return sc.localInvoke(method, args, (FutureHolder) provider);
| public void | readExternal(java.io.ObjectInput in)
super.readExternal(in);
provider = (AsynchProvider)in.readObject();
| public java.lang.String | toString()
return container.getEjbName().toString();
| public void | writeExternal(java.io.ObjectOutput out)
super.writeExternal(out);
out.writeObject(provider);
|
|