org.kuali.rice.ksb.messaging
Class RemotedServiceRegistryImpl
java.lang.Object
org.kuali.rice.ksb.messaging.RemotedServiceRegistryImpl
- All Implemented Interfaces:
- Runnable, Lifecycle, ServiceLocator, RemotedServiceRegistry
public class RemotedServiceRegistryImpl
- extends Object
- implements RemotedServiceRegistry, Runnable
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serviceRegistry
protected ServiceRegistry serviceRegistry
serviceLocator
protected KSBContextServiceLocator serviceLocator
RemotedServiceRegistryImpl
public RemotedServiceRegistryImpl()
handle
public void handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler)
throws Exception
- Throws:
Exception
registerService
public void registerService(ServiceDefinition serviceDefinition,
boolean forceRegistryRefresh)
- Specified by:
registerService in interface RemotedServiceRegistry
registerTempService
public void registerTempService(ServiceDefinition serviceDefinition,
Object service)
- Specified by:
registerTempService in interface RemotedServiceRegistry
getRemotedServiceHolder
public ServerSideRemotedServiceHolder getRemotedServiceHolder(QName qname)
- Specified by:
getRemotedServiceHolder in interface RemotedServiceRegistry
getService
public Object getService(QName qName,
String url)
- Specified by:
getService in interface RemotedServiceRegistry
getLocalService
public Object getLocalService(QName serviceName)
- Specified by:
getLocalService in interface RemotedServiceRegistry
getService
public Object getService(QName qname)
- Description copied from interface:
ServiceLocator
- Fetches the service with the given name.
- Specified by:
getService in interface ServiceLocator
getServiceName
public QName getServiceName(String url)
- This method is used to obtain the qualified service name for the service deployed at the given url.
- Specified by:
getServiceName in interface RemotedServiceRegistry
- Parameters:
url -
- Returns:
- the service
removeRemoteServiceFromRegistry
public void removeRemoteServiceFromRegistry(QName serviceName)
- Specified by:
removeRemoteServiceFromRegistry in interface RemotedServiceRegistry
refresh
public void refresh()
- Specified by:
refresh in interface RemotedServiceRegistry
run
public void run()
- Specified by:
run in interface Runnable
isStarted
public boolean isStarted()
- Specified by:
isStarted in interface Lifecycle
start
public void start()
throws Exception
- Specified by:
start in interface Lifecycle
- Throws:
Exception
stop
public void stop()
throws Exception
- Specified by:
stop in interface Lifecycle
- Throws:
Exception
getContents
public String getContents(String indent,
boolean servicePerLine)
- Specified by:
getContents in interface ServiceLocator
getServiceRegistry
public ServiceRegistry getServiceRegistry()
getPublishedServices
public Map<QName,ServerSideRemotedServiceHolder> getPublishedServices()
- Specified by:
getPublishedServices in interface RemotedServiceRegistry
getPublishedTempServices
public Map<QName,ServerSideRemotedServiceHolder> getPublishedTempServices()
- Specified by:
getPublishedTempServices in interface RemotedServiceRegistry
setServiceRegistry
public void setServiceRegistry(ServiceRegistry serviceRegistry)
getServiceLocator
public KSBContextServiceLocator getServiceLocator()
- Returns:
- the serviceLocator
setServiceLocator
public void setServiceLocator(KSBContextServiceLocator serviceLocator)
- Parameters:
serviceLocator - the serviceLocator to set
Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.