com.google.appengine.spi

## Class FactoryProvider<I>

- java.lang.Object
- - com.google.appengine.spi.FactoryProvider<I>

- Type Parameters:
    `I` - is the interface the provided factory must implement.
  All Implemented Interfaces:
    java.lang.Comparable<FactoryProvider<?>>

      public abstract class FactoryProvider<I>
      extends java.lang.Object
      implements java.lang.Comparable<FactoryProvider<?>>

  A base class for service factory creation that can be registered with the ProviderRegistry.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compareTo(FactoryProvider<?> o)` This ensures that a list of these will be sorted so that higher precedence entries come later in the list.
    `boolean` | `equals(java.lang.Object o)` Included to support sorting by precedence (@see #compareTo(FactoryProvider))
    `int` | `hashCode()`

    - ### Methods inherited from class java.lang.Object

      `getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### compareTo

          public int compareTo(FactoryProvider<?> o)

      This ensures that a list of these will be sorted so that higher precedence entries come later in the list.
      Specified by:
        `compareTo` in interface `java.lang.Comparable<FactoryProvider<?>>`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `java.lang.Object`

    - #### equals

          public boolean equals(java.lang.Object o)

      Included to support sorting by precedence (@see #compareTo(FactoryProvider))
      Overrides:
        `equals` in class `java.lang.Object`