edu.uoc.tfc
Class ServiceLocator

java.lang.Object
  extended by edu.uoc.tfc.ServiceLocator

public class ServiceLocator
extends java.lang.Object

Locates and provides all available application services.


Field Summary
static java.lang.String BEAN_PREFIX
          The prefix used for all bean ids.
 
Method Summary
 AsseguradoraManageableService getAsseguradoraManageableService()
          Gets an instance of AsseguradoraManageableService.
 AsseguradoraService getAsseguradoraService()
          Gets an instance of AsseguradoraService.
 ClientManageableService getClientManageableService()
          Gets an instance of ClientManageableService.
 ClientService getClientService()
          Gets an instance of ClientService.
 org.springframework.context.ApplicationContext getContext()
          Gets the Spring ApplicationContext.
 FacturaManageableService getFacturaManageableService()
          Gets an instance of FacturaManageableService.
 OperationManageableService getOperationManageableService()
          Gets an instance of OperationManageableService.
 PartManageableService getPartManageableService()
          Gets an instance of PartManageableService.
 PartService getPartService()
          Gets an instance of PartService.
 RoleManageableService getRoleManageableService()
          Gets an instance of RoleManageableService.
 SecurityService getSecurityService()
          Gets an instance of SecurityService.
 java.lang.Object getService(java.lang.String serviceName)
          Gets an instance of the given service.
 TipusSiniestreManageableService getTipusSiniestreManageableService()
          Gets an instance of TipusSiniestreManageableService.
 TipusSinistreService getTipusSinistreService()
          Gets an instance of TipusSinistreService.
 UserManageableService getUserManageableService()
          Gets an instance of UserManageableService.
 void init(java.lang.String beanFactoryReferenceLocation)
          Initializes the Spring application context from the given beanFactoryReferenceLocation.
 void init(java.lang.String beanFactoryReferenceLocation, java.lang.String beanRefFactoryReferenceId)
          Initializes the Spring application context from the given beanFactoryReferenceLocation.
static ServiceLocator instance()
          Gets the shared instance of this Class
 void shutdown()
          Shuts down the ServiceLocator and releases any used resources.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BEAN_PREFIX

public static final java.lang.String BEAN_PREFIX
The prefix used for all bean ids.

See Also:
Constant Field Values
Method Detail

instance

public static final ServiceLocator instance()
Gets the shared instance of this Class

Returns:
the shared service locator instance.

init

public void init(java.lang.String beanFactoryReferenceLocation,
                 java.lang.String beanRefFactoryReferenceId)
Initializes the Spring application context from the given beanFactoryReferenceLocation. If null is specified for the beanFactoryReferenceLocation then the default application context will be used.

Parameters:
beanFactoryReferenceLocation - the location of the beanRefFactory reference.

init

public void init(java.lang.String beanFactoryReferenceLocation)
Initializes the Spring application context from the given beanFactoryReferenceLocation. If null is specified for the beanFactoryReferenceLocation then the default application context will be used.

Parameters:
beanFactoryReferenceLocation - the location of the beanRefFactory reference.

getContext

public org.springframework.context.ApplicationContext getContext()
Gets the Spring ApplicationContext.


shutdown

public void shutdown()
Shuts down the ServiceLocator and releases any used resources.


getSecurityService

public final SecurityService getSecurityService()
Gets an instance of SecurityService.


getAsseguradoraService

public final AsseguradoraService getAsseguradoraService()
Gets an instance of AsseguradoraService.


getClientService

public final ClientService getClientService()
Gets an instance of ClientService.


getPartService

public final PartService getPartService()
Gets an instance of PartService.


getTipusSinistreService

public final TipusSinistreService getTipusSinistreService()
Gets an instance of TipusSinistreService.


getUserManageableService

public final UserManageableService getUserManageableService()
Gets an instance of UserManageableService.


getRoleManageableService

public final RoleManageableService getRoleManageableService()
Gets an instance of RoleManageableService.


getOperationManageableService

public final OperationManageableService getOperationManageableService()
Gets an instance of OperationManageableService.


getPartManageableService

public final PartManageableService getPartManageableService()
Gets an instance of PartManageableService.


getFacturaManageableService

public final FacturaManageableService getFacturaManageableService()
Gets an instance of FacturaManageableService.


getTipusSiniestreManageableService

public final TipusSiniestreManageableService getTipusSiniestreManageableService()
Gets an instance of TipusSiniestreManageableService.


getAsseguradoraManageableService

public final AsseguradoraManageableService getAsseguradoraManageableService()
Gets an instance of AsseguradoraManageableService.


getClientManageableService

public final ClientManageableService getClientManageableService()
Gets an instance of ClientManageableService.


getService

public final java.lang.Object getService(java.lang.String serviceName)
Gets an instance of the given service.