|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.remoting.support.RemoteExporter
Abstract base class for classes that export a remote service. Provides "service" and "serviceInterface" bean properties.
Note that the service interface being used will show some signs of remotability, like the granularity of method calls that it offers. Furthermore, it has to have serializable arguments etc.
Field Summary | |
protected Log |
logger
|
Constructor Summary | |
RemoteExporter()
|
Method Summary | |
protected void |
checkService()
Check whether the service reference has been set. |
protected void |
checkServiceInterface()
Check whether a service reference has been set, and whether it matches the specified service. |
protected Object |
getProxyForService()
Get a proxy for the given service object, implementing the specified service interface. |
protected Object |
getService()
Return the service to export. |
protected Class |
getServiceInterface()
Return the interface of the service to export. |
void |
setService(Object service)
Set the service to export. |
void |
setServiceInterface(Class serviceInterface)
Set the interface of the service to export. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected final Log logger
Constructor Detail |
public RemoteExporter()
Method Detail |
public void setService(Object service)
protected Object getService()
public void setServiceInterface(Class serviceInterface)
protected Class getServiceInterface()
protected void checkService() throws IllegalArgumentException
IllegalArgumentException
setService(java.lang.Object)
protected void checkServiceInterface() throws IllegalArgumentException
IllegalArgumentException
setServiceInterface(java.lang.Class)
,
setService(java.lang.Object)
protected Object getProxyForService()
Used to export a proxy that does not expose any internals but just a specific interface intended for remote access. Typically only applied if the remoting tool itself does not offer such means itself.
setServiceInterface(java.lang.Class)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |