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:
Comparable<FactoryProvider<?>>
Direct Known Subclasses:
IAppIdentityServiceFactoryProvider, IBackendServiceFactoryProvider, IBlobstoreServiceFactoryProvider, ICapabilitiesServiceFactoryProvider, IDatastoreServiceFactoryProvider, IImagesServiceFactoryProvider, ILogServiceFactoryProvider, IMailServiceFactoryProvider, IMemcacheServiceFactoryProvider, IModulesServiceFactoryProvider, IOAuthServiceFactoryProvider, IQueueFactoryProvider, IQuotaServiceFactoryProvider, ISearchServiceFactoryProvider, IURLFetchServiceFactoryProvider, IUserServiceFactoryProvider

public abstract class FactoryProvider<I> extends Object implements Comparable<FactoryProvider<?>>
A base class for service factory creation that can be registered with the ProviderRegistry.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    This ensures that a list of these will be sorted so that higher precedence entries come later in the list.
    boolean
    Included to support sorting by precedence (@see #compareTo(FactoryProvider))
    int
     

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • 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 Comparable<I>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Included to support sorting by precedence (@see #compareTo(FactoryProvider))
      Overrides:
      equals in class Object