org.sr.server
Class POJOServiceLocator
java.lang.Object
org.sr.server.AbstractServiceLocator
org.sr.server.POJOServiceLocator
- All Implemented Interfaces:
- IServiceLocator
public class POJOServiceLocator
- extends AbstractServiceLocator
- implements IServiceLocator
Service Locator implementation for Plain Java Objects.This implementation is
used as default service locator of system. Service definitions that use
this locator must put class names as service targets. Because of this
locator defined as default locator, services that uses this locator doesn't have
to put "locator" attribute in their definitions.An example service definition could be:
<Service name="echoBean" target="test.bean.EchoBean" instance="singleton">
<Operation pattern=".*" />
</Service>
- Author:
- Serhat Dirik
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
POJOServiceLocator
public POJOServiceLocator()
getServiceByName
public java.lang.Object getServiceByName(java.lang.String serviceName,
ICallerContextInfo<?> context)
throws ServiceNotFoundException,
SessionNotFoundException,
ServicePreparationException
- Specified by:
getServiceByName
in interface IServiceLocator
- Throws:
ServiceNotFoundException
SessionNotFoundException
ServicePreparationException