public interface

ServiceLocator

com.google.gwt.requestfactory.shared.ServiceLocator

Class Overview

A ServiceLocator provides instances of a type specified by a Service when Request methods declared in a RequestContextare mapped onto instance (non-static) methods.

ServiceLocator subtypes must be default instantiable (i.e. public static types with a no-arg constructor). Instances of ServiceLocators may be retained and reused by the RequestFactory service layer.

See Also
  • Service#locator()

Summary

Public Methods
abstract Object getInstance(Class<?> clazz)
Returns an instance of the service object.

Public Methods

public abstract Object getInstance (Class<?> clazz)

Returns an instance of the service object.

Parameters
clazz the requested type of service object
Returns
  • an instance of the service object