Interface Factory<T>

All Known Implementing Classes:
LocatableConstantFactory, LocatableFactory

public interface Factory<T>
A custom factory. Creates objects which will be injected.
Author:
crazybob@google.com (Bob Lee)
  • Method Summary

    Modifier and Type
    Method
    Description
    create(Context context)
    Creates an object to be injected.
    Class<? extends T>
    Returns a class of
  • Method Details

    • create

      T create(Context context) throws Exception
      Creates an object to be injected.
      Parameters:
      context - of this injection
      Returns:
      instance to be injected
      Throws:
      Exception - if unable to create object
    • type

      Class<? extends T> type()
      Returns a class of
      Returns:
      class of the object