podafIoc

A powerful Dependency Injection / Inversion Of Control (IOC) framework

Mixins

ActorPools

(Service) - Maintains a collection of named ActorPools.

DependencyProvider

Implement to provide your own dependency resolution.

DependencyProviderSource

(Service) - Contribute your DependencyProvider implementations to this.

LogProvider

(Service) - A DependencyProvider that injects Log instances.

Registry

(Service) - The registry of IoC services; this is the main IoC service.

RegistryMeta

(Service) - Holds meta information as to how the IoC registry was built.

RegistryShutdownHub

(Service) - Contribute functions to be executed on Registry shut down.

RegistryStartup

(Service) - Contribute functions to be executed on Registry start up.

ServiceBinder

Use in your AppModule.bind(ServiceBinder binder) {...} method.

ServiceBindingOptions

Returned from AppModule.bind() methods; lets you specify additional service options.

ServiceOverride

(Service) - Contribute to override previously defined services.

ServiceStats

(Service) - Holds a list of all the services defined by this IoC.

ThreadLocalManager

(Service) - Use to create LocalRef instances whose contents can be cleaned up.

Classes

InjectionCtx

Passed into DependencyProviders to give contextual injection information.

IocService

Wraps an afIoc Registry instance as Fantom service.

MappedConfig

Passed into module contribution methods to allow the method to, err, contribute!

MethodAdvisor

Passed into module advisor methods to allow the method to, err, advise services!

MethodInvocation

Used by aspects to call the method they wrap.

OrderedConfig

Passed into module contribution methods to allow the method to, err, contribute!

RegistryBuilder

Use to create an IoC Registry.

ServiceStat

As returned by ServiceStats.

StrategyRegistry

A helper class that looks up Objs via Type inheritance search.

TypeCoercer

A helper class that coerces Objs to a given Type via fromXXX() / toXXX() ctors and methods.

Enums

InjectionType

Used by InjectionCtx to inform DependencyProviders what type of injection is occurring.

ServiceLifecycle

Used by ServiceStat to define the lifecycle state of a service

ServiceScope

Scope definitions for Services.

Facets

Advise

Use in AppModule classes to denote a service advisor method.

Autobuild

An optional facet to use in conjunction with @Inject.

Build

Use in AppModule classes to denote a service builder method.

Contribute

Use in AppModule classes to denote a service contribution method.

Inject

Use in services to inject dependencies.

PostInjection

Use in services to mark a method to be called after ctor and field injection.

ServiceId

An optional facet to use in conjunction with @Inject to specify a service to inject.

SubModule

Use on AppModule classes to define other modules to be loaded.

Errs

IocErr

As thrown by IoC

NotFoundErr

A generic helper Err thrown when a value is not found in an expected list of values.

WtfErr

Thrown when an impossible condition occurs.