jugger library

Classes

Component
Annotates an abstract class for which a dependency-injected implementation is to be generated from a set of modules.
Disposable
Identifies that the graph object can be disposed after the life of the component ends. Disposable object has two disposal strategies:
ILazy<T>
A handle to a lazily-computed value. Each ILazy computes its value on the first call to ILazy.value and remembers that same value for all subsequent calls to ILazy.value.
Inject
Identifies injectable constructors, methods, and fields.
IntKey
A MapKey annotation for maps with int keys.
IProvider<T>
Provides instances of T. Typically implemented by an injector.
Module
Annotates a class that contributes to the object graph.
Named
String-based qualifier.
Provider<T>
Call to Provider.get returns a new instance.
SingletonProvider<T>
Call to SingletonProvider.get computes value and remembers that same value for all calls to SingletonProvider.get per scope.
StringKey
A MapKey annotation for maps with String keys.
Subcomponent
A subcomponent that inherits the bindings from a parent Component or Subcomponent.
TypeKey
A MapKey annotation for maps with Type keys.

Extensions

ProviderExtensions on IProvider<T>

Constants

binds → const Binds
componentBuilder → const ComponentBuilder
disposable → const Disposable
disposalHandler → const DisposalHandler
inject → const Inject
intoMap → const IntoMap
The method's return type forms the type argument for the value of a Map<K, V>, and the combination of the annotated key and the returned value is contributed to the map as a key/value pair. The Map<K, V> produced from the accumulation of values will be immutable.
intoSet → const IntoSet
The method's return type forms the generic type argument of a Set
mapKey → const MapKey
Identifies annotation types that are used to associate keys with values in order to compose a map IntoMap.
module → const Module
nonLazy → const NonLazy
provides → const Provides
qualifier → const Qualifier
scope → const Scope
singleton → const Singleton
subcomponentFactory → const SubcomponentFactory
Marks a method on a Component or Subcomponent as a subcomponent factory.