org.springframework.richclient.application
Interface ApplicationServices

Show UML class diagram
All Known Implementing Classes:
DefaultApplicationServices, StaticApplicationServices

public interface ApplicationServices

A service locator that can retrieve instances of a service by class type.

Author:
Larry Streepy

Method Summary
 boolean containsService(Class serviceType)
          Determine if a service of the requested type is available.
 Object getService(Class serviceType)
          Returns the application service of the requested type (class).
 

Method Detail

getService

Object getService(Class serviceType)
Returns the application service of the requested type (class).

Parameters:
serviceType - Type of service to locate
Returns:
A service implementation of the requested type. Never null.
Throws:
IllegalArgumentException - if serviceType is null.
ServiceNotFoundException - if there is no service known for the given serviceType.

containsService

boolean containsService(Class serviceType)
Determine if a service of the requested type is available.

Parameters:
serviceType - Type of service to locate
Returns:
true if service is available, false if not
Throws:
IllegalArgumentException - if serviceType is null.


Copyright © 2004-2009 The Spring Framework. All Rights Reserved.