org.androidpn.server.service
Class ServiceLocator

java.lang.Object
  extended by org.androidpn.server.service.ServiceLocator

public class ServiceLocator
extends java.lang.Object

This is a helper class to look up service objects.

Author:
Sehwan Noh (devnoh@gmail.com)

Field Summary
static java.lang.String USER_SERVICE
           
 
Constructor Summary
ServiceLocator()
           
 
Method Summary
static java.lang.Object getService(java.lang.String name)
          Generic method to obtain a service object for a given name.
static UserService getUserService()
          Obtains the user service.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USER_SERVICE

public static java.lang.String USER_SERVICE
Constructor Detail

ServiceLocator

public ServiceLocator()
Method Detail

getService

public static java.lang.Object getService(java.lang.String name)
Generic method to obtain a service object for a given name.

Parameters:
name - the service bean name
Returns:

getUserService

public static UserService getUserService()
Obtains the user service.

Returns:
the user service