com.caucho.remote.client
Class AbstractProtocolProxyFactory

java.lang.Object
  extended by com.caucho.remote.client.AbstractProtocolProxyFactory
All Implemented Interfaces:
ProtocolProxyFactory
Direct Known Subclasses:
BurlapProtocolProxyFactory, HessianProtocolProxyFactory

public abstract class AbstractProtocolProxyFactory
extends java.lang.Object
implements ProtocolProxyFactory

A factory for creating a proxy


Constructor Summary
AbstractProtocolProxyFactory()
           
 
Method Summary
abstract
<T> T
createProxy(java.lang.Class<T> api)
          Creates a new proxy based on an API.
 void setAnnotated(Annotated annotated)
          Sets the ServiceType annotated
 void setProxyType(java.lang.annotation.Annotation ann)
          Sets the ProxyType annotation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractProtocolProxyFactory

public AbstractProtocolProxyFactory()
Method Detail

setProxyType

public void setProxyType(java.lang.annotation.Annotation ann)
Sets the ProxyType annotation

Specified by:
setProxyType in interface ProtocolProxyFactory

setAnnotated

public void setAnnotated(Annotated annotated)
Sets the ServiceType annotated

Specified by:
setAnnotated in interface ProtocolProxyFactory

createProxy

public abstract <T> T createProxy(java.lang.Class<T> api)
Creates a new proxy based on an API.

Specified by:
createProxy in interface ProtocolProxyFactory
Parameters:
api - the remote api for the proxy