Annotation Type ServiceProvider


@Documented @Retention(RUNTIME) @Target(TYPE) public @interface ServiceProvider
Specifies the precedence that ServiceFactoryFactory gives to the annotated FactoryProvider.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    Higher precedence will take priority over lower precedences for a given interface.
    Returns the interface implemented by this ServiceProvider.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
  • Field Details

  • Element Details

    • value

      Class<?> value
      Returns the interface implemented by this ServiceProvider. This is present for compatibility reasons but should always be FactoryProvider, which is the default.
      Default:
      com.google.appengine.spi.FactoryProvider.class
    • precedence

      int precedence
      Higher precedence will take priority over lower precedences for a given interface.
      Default:
      0