AF-IOC 1.4.10
A powerful 'Inversion Of Control' (IOC) framework

afIoc is an Inversion of Control (IoC) container and Dependency Injection (DI) framework based on the most excellent Tapestry 5 IoC.

Like Guice? Know Spring? Then you'll love afIoc!

  • Injection - the way you want it!
    • field injection
    • standard ctor injection
    • serialisation ctor injection - new make(|This|in) { in(this) }
  • Distributed service configuration between pods and modules
    • configure any service from any pod / module
    • configure via simple Lists and Maps
  • Override everything
    • override services and configuration, even override your overrides!
    • replace real services with test services
    • set sensible application defaults and let your users override them
  • True lazy loading
    • services are proxied to ensure nothing is created until you actually use it
    • make circular service dependencies a thing of the past!
  • Advise services with aspects
    • intercept method calls to your services
    • apply cross cutting concerns such as authorisation, transactions and logging
  • Extensible
    • inject your own objects, not just services
  • Designed to help YOU the developer!
    • simple API - 1 facet and 4 registry methods and you're away!
    • over 75 bespoke and informative Err messages!
    • Extensively tested: - All tests passed! [34 tests, 198 methods, 498 verifies]

      ALIEN-AID: For tips and tutorials on afIoc, be sure to check out Fantom-Factory!

Read more...

Install

To install AF-IOC with Fantom Pod Manager, cut'n'paste the following into a cmd prompt, terminal or shell:

Or to install AF-IOC with the Fantom Repository Manager (fanr), cut'n'paste the following into a cmd prompt, terminal or shell:

Or to install manually, download the pod file and copy it to the %FAN_HOME%/lib/fan/ directory.

afIoc.pod (281.64 kB)

Use

To use AF-IOC in a Fantom project, add a dependency to the project's build.fan:

depends = ["sys 1.0", ..., "afIoc 1.4.10 - 1.4"]

Documentation

Information

Meta information on the AF-IOC pod:

Published by
Steve Eynon
Organisation
Alien-Factory
Pod file size
281.64 kB
Licence
BSD 2-Clause License
Built on
18th Nov 2013
Source code
at https://bitbucket.org/AlienFactory/afioc
Depends on
afPlastic, compiler, concurrent, sys
Referenced by
Javascript Compatible
No

Dependency Graph

  Use mouse to re-position pods

Release History

There have been 39 releases of AF-IOC: