org.overlord.sramp.ui.client.services
Class Services

java.lang.Object
  extended by org.overlord.sramp.ui.client.services.Services
All Implemented Interfaces:
IServices

public class Services
extends Object
implements IServices

Concrete implementation of the IServices interface.

Author:
eric.wittmann@redhat.com

Method Summary
<T extends IService>
T
getService(Class<T> serviceType)
          Gets a service.
static IServices getServices()
          Gets the services singleton.
static void init(Map<Class<? extends IService>,IService> registeredServices, ServiceLifecycleContext context, IServicesListener servicesListener)
          Initializes the Services infrastructure.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getServices

public static final IServices getServices()
Gets the services singleton.


init

public static void init(Map<Class<? extends IService>,IService> registeredServices,
                        ServiceLifecycleContext context,
                        IServicesListener servicesListener)
Initializes the Services infrastructure.

Parameters:
registeredServices -
context -
servicesListener -

getService

public <T extends IService> T getService(Class<T> serviceType)
                              throws ServiceNotFoundException
Description copied from interface: IServices
Gets a service.

Specified by:
getService in interface IServices
Parameters:
serviceType - the type of service to get
Throws:
ServiceNotFoundException
See Also:
IServices.getService(java.lang.Class)


Copyright © 2012-2013 JBoss, a division of Red Hat. All Rights Reserved.