Annotation Type Service


@Retention(RUNTIME) @Target(TYPE) public @interface Service
Annotation on Request classes specifying the server-side implementations that back them.
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The domain type that provides the implementations for the methods defined in the RequestContext.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    An optional ServiceLocator that provides instances of service objects used when invoking instance methods on the type returned by value().
  • Element Details

    • value

      Class<?> value
      The domain type that provides the implementations for the methods defined in the RequestContext.
    • locator

      Class<? extends ServiceLocator> locator
      An optional ServiceLocator that provides instances of service objects used when invoking instance methods on the type returned by value().
      Default:
      com.google.web.bindery.requestfactory.shared.ServiceLocator.class