Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Feb 9, 2010
  1. Merge branch 'master' into childinjectors

    * master:
      FIX: Injector throws exception when trying to inject into mapped XML values
  2. Added support for directly applying injector mapping rules and return…

    …ing the result using Injector#getMappedResponse
  3. Added support for querying mapping existence with Injector#hasMapping

    Additionally, some duplicated code in Injector was moved into helper methods
  4. Added proper error message for wrong XML configuration options to Inj…

  5. Made Injector#setParentInjector public to enable turning independentl…

    …y created injectors into child injectors.
    This is mainly meant to be used in the context of Robotlegs, which subclasses Injector to allow for using swappable injector implementations through a uniform interface.
    Because SwiftSuspenders must not have a dependency on Robotlegs, we can't internally create an instance of Robotlegs' SwiftSuspendersInjector. Using the public setParentInjector method, it's possible to manually instantiate SwiftSuspendersInjector and set the parent context's injector as the parent injector afterwards.
  6. Removed old classes

  7. Added support for child injectors, enabling usage of different inject…

    …ion mappings for parts of a dependency tree
    In addition, injection results classes have been refactored to inherit from a base class instead of implementing an interface to facilitate code-reuse
  8. Further refactoring of injection configuration: InjectionPoints now g…

    …et assigned a fixed InjectionConfig which may or may not already have a result to return instead of querying the Injectors mappings each time an injection request for the InjectionPoint is made.
    Reasoning for this change:
    The InjectionConfig shouldn't be resolved anew each time a request for its result is made.
    Also, this is the last big step of preparation for creating child injectors that forward requests they can't fulfill themself to a parent injector.
  9. Change to InjectionConfig setup: Singletons dictionary is now stored …

    …in the InjectionConfig instead of being transferred through InjectionPoint
  10. Changed the way InjectionConfig's are configured: They now receive th…

    …eir injector reference at creation time instead of through the InjectionPoint
Commits on Dec 10, 2009
Commits on Dec 8, 2009
Commits on Nov 24, 2009
  1. Changed version to 1.0.0

  2. Fixed a bug that caused a recursive loop for mutually recursive injec…

    …tees, whose dependency resolution wasn't detected early enough.
Commits on Nov 20, 2009
Something went wrong with that request. Please try again.