Package magnet
-
Interface Summary Interface Description Factory<T> Custom factory to be used withInstance.factory()
.Factory.Instantiator<T> Instantiator creates new instance of given type usingnew
operator.Scope Scope is a container for objects which are stored there at runtime.Visitor Implementation of this interface should be used withScope.accept(Visitor, int)
for iterating though instances and subscopes of a scope.Visitor.Instance Visited instance.Visitor.Scope Visited scope. -
Class Summary Class Description Magnet SelectorFilter Selector handler for processingInstance.selector()
value at runtime. -
Enum Summary Enum Description Scoping Declares the way Magnet binds instances of @Instance-annotated classes into scopes.Visitor.Provision Provision type. -
Annotation Types Summary Annotation Type Description Classifier Magnet can bind multiple instances of the same type into a scope.Instance Magnet instantiates classes marked with this annotation automatically.Registry This marker annotation instructs Magnet to generate a registry indexing all instances available in classpath.