org.kuali.rice.ksb.messaging
Class RemotedServiceHolder
java.lang.Object
org.kuali.rice.ksb.messaging.RemotedServiceHolder
- All Implemented Interfaces:
- ServiceHolder
public class RemotedServiceHolder
- extends Object
- implements ServiceHolder
Holds the reference to an endpoint of a service as well as the ServiceInfo
that defines the service. Provides lazy loading of services at call time.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
private static final org.apache.log4j.Logger LOG
service
private Object service
serviceInfo
private ServiceInfo serviceInfo
RemotedServiceHolder
public RemotedServiceHolder(ServiceInfo entry)
getServiceInfo
public ServiceInfo getServiceInfo()
- Specified by:
getServiceInfo in interface ServiceHolder
setServiceInfo
public void setServiceInfo(ServiceInfo entry)
- Specified by:
setServiceInfo in interface ServiceHolder
getService
public Object getService()
throws Exception
- Specified by:
getService in interface ServiceHolder
- Throws:
Exception
setService
public void setService(Object service)
- Specified by:
setService in interface ServiceHolder
cloneServiceInfo
private static ServiceInfo cloneServiceInfo(ServiceInfo serviceInfo)
- this is a hack so we don't mess with the
ServiceInfo on the deployment side of things from the
RemotedServiceRegistry. We need the service in the ServiceInfo used on the client to be null but
it can't be for the server side stuff - solution serialize the object just like it was put in a datastore.
- Parameters:
serviceInfo -
- Returns:
-
- Throws:
Exception
Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.