Class Locator<T,I>

java.lang.Object
com.google.web.bindery.requestfactory.shared.Locator<T,I>
Type Parameters:
T - the type of domain object the Locator will operate on
I - the type of object the Locator expects to use as an id for the domain object
Direct Known Subclasses:
ValueLocator

public abstract class Locator<T,I> extends Object
A Locator allows entity types that do not conform to the RequestFactory entity protocol to be used. Instead of attempting to use a findFoo(), getId(), and getVersion() declared in the domain entity type, an instance of a Locator will be created to provide implementations of these methods.

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

See Also: