org.kuali.rice.ksb.messaging
Class RemotedServiceRegistryImpl

java.lang.Object
  extended by org.kuali.rice.ksb.messaging.RemotedServiceRegistryImpl
All Implemented Interfaces:
Runnable, Lifecycle, ServiceLocator, RemotedServiceRegistry

public class RemotedServiceRegistryImpl
extends Object
implements RemotedServiceRegistry, Runnable


Field Summary
protected  KSBContextServiceLocator serviceLocator
           
protected  ServiceRegistry serviceRegistry
           
 
Constructor Summary
RemotedServiceRegistryImpl()
           
 
Method Summary
 String getContents(String indent, boolean servicePerLine)
           
 Object getLocalService(QName serviceName)
           
 Map<QName,ServerSideRemotedServiceHolder> getPublishedServices()
           
 Map<QName,ServerSideRemotedServiceHolder> getPublishedTempServices()
           
 ServerSideRemotedServiceHolder getRemotedServiceHolder(QName qname)
           
 Object getService(QName qname)
          Fetches the service with the given name.
 Object getService(QName qName, String url)
           
 KSBContextServiceLocator getServiceLocator()
           
 QName getServiceName(String url)
          This method is used to obtain the qualified service name for the service deployed at the given url.
 ServiceRegistry getServiceRegistry()
           
 void handle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler)
           
 boolean isStarted()
           
 void refresh()
           
 void registerService(ServiceDefinition serviceDefinition, boolean forceRegistryRefresh)
           
 void registerTempService(ServiceDefinition serviceDefinition, Object service)
           
 void removeRemoteServiceFromRegistry(QName serviceName)
           
 void run()
           
 void setServiceLocator(KSBContextServiceLocator serviceLocator)
           
 void setServiceRegistry(ServiceRegistry serviceRegistry)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serviceRegistry

protected ServiceRegistry serviceRegistry

serviceLocator

protected KSBContextServiceLocator serviceLocator
Constructor Detail

RemotedServiceRegistryImpl

public RemotedServiceRegistryImpl()
Method Detail

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.