A C D E F G I L N O P R S T U V
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- AbstractScopeResolver<S> - Class in org.int4.dirk.spi.scope
-
Abstract base implementation of a
ScopeResolverwhich manages a map of instances per scope. - AbstractScopeResolver() - Constructor for class org.int4.dirk.spi.scope.AbstractScopeResolver
- add(Field, Type) - Method in interface org.int4.dirk.spi.definition.TypeRegistrationExtension.Registry
-
Adds a derived type given a
Fieldand the field's ownerType. - add(Method, Type) - Method in interface org.int4.dirk.spi.definition.TypeRegistrationExtension.Registry
-
Adds a derived type given a
Methodand the method's ownerType. - add(Type) - Method in interface org.int4.dirk.spi.definition.TypeRegistrationExtension.Registry
-
Adds a derived type given a
Type. - AnnotationStrategy - Interface in org.int4.dirk.spi.config
-
Strategy for checking and obtaining annotations relevant to dependency injection.
C
- create(Class<?>) - Method in interface org.int4.dirk.spi.config.LifeCycleCallbacksFactory
-
Creates a
LifeCycleCallbacksfor a given class. - createProxyFactory(Class<T>) - Method in interface org.int4.dirk.spi.config.ProxyStrategy
-
Creates a proxy factory for the given
Classand returns a function which can be used to create a new proxy. - CreationalContext<T> - Interface in org.int4.dirk.spi.scope
-
Context used to create and destroy instances with injection information.
D
- deriveTypes(TypeRegistrationExtension.Registry, Type) - Method in interface org.int4.dirk.spi.definition.TypeRegistrationExtension
-
Called during registration of new types to allow the extension to register further types that can be directly derived from the given
Type. - destroy(T) - Method in interface org.int4.dirk.spi.instantiation.Instance
-
Destroys an instance created with this
Instanceor one of its children. - destroyAll(Collection<T>) - Method in interface org.int4.dirk.spi.instantiation.Instance
-
Destroys a collection of instances created with this
Instanceor one of its children. - destroyScope(S) - Method in class org.int4.dirk.spi.scope.AbstractScopeResolver
-
Destroys the given scope.
E
- EAGER_ANY - org.int4.dirk.spi.instantiation.Resolution
-
Restricts the dependency to be non-circular.
- EAGER_ONE - org.int4.dirk.spi.instantiation.Resolution
-
Restricts the dependency to be non-circular, properly scoped (a proxy may be required), and the dependency must result in a single match.
F
- find(Object) - Method in class org.int4.dirk.spi.scope.AbstractScopeResolver
- find(Object) - Method in interface org.int4.dirk.spi.scope.ScopeResolver
-
Find an existing
CreationalContextby key in the current active scope, or returnnullif no context was found in the given scope with the given key.
G
- get() - Method in interface org.int4.dirk.spi.config.ProxyStrategy.InstanceSupplier
-
Returns an underlying instance for the proxy of type
T. - get() - Method in interface org.int4.dirk.spi.instantiation.Instance
-
Creates an instance of type
T. - get() - Method in interface org.int4.dirk.spi.scope.CreationalContext
-
Gets an instance of type
T. - getAll() - Method in interface org.int4.dirk.spi.instantiation.Instance
-
Creates all instances of type
T. - getAnnotation() - Method in interface org.int4.dirk.spi.scope.ScopeResolver
-
Returns the annotation this resolver handles.
- getAnnotationStrategy() - Method in interface org.int4.dirk.spi.config.InjectorStrategy
-
Returns the
AnnotationStrategyto be used. - getCurrentScope() - Method in class org.int4.dirk.spi.scope.AbstractScopeResolver
-
Returns the current scope, or
nullif there is no current scope. - getDefaultAnnotation() - Method in interface org.int4.dirk.spi.config.ScopeStrategy
-
Returns the annotation that marks the default scope.
- getDependentAnnotation() - Method in interface org.int4.dirk.spi.config.ScopeStrategy
-
Returns the annotation that marks the dependent pseudo-scope.
- getElementTypeVariable() - Method in class org.int4.dirk.spi.instantiation.InjectionTargetExtension
-
Returns a
TypeVariablewhich represents the element typeE. - getInjectAnnotations(AnnotatedElement) - Method in interface org.int4.dirk.spi.config.AnnotationStrategy
-
Returns all
Annotations on the givenAnnotatedElementwhich are inject annotations. - getInstance(Instance<E>) - Method in interface org.int4.dirk.spi.instantiation.InstanceProvider
-
Creates an instance of type
Tusing the givenInstance. - getInstanceProvider() - Method in class org.int4.dirk.spi.instantiation.InjectionTargetExtension
-
Returns the
InstanceProviderthat can create the type handled by this extension. - getLifeCycleCallbacksFactory() - Method in interface org.int4.dirk.spi.config.InjectorStrategy
-
Returns the
LifeCycleCallbacksFactoryto be used. - getProxyStrategy() - Method in interface org.int4.dirk.spi.config.InjectorStrategy
-
Returns the
ProxyStrategyto be used. - getQualifiers(AnnotatedElement) - Method in interface org.int4.dirk.spi.config.AnnotationStrategy
-
Returns all
Annotations on the givenAnnotatedElementwhich are qualifier annotations. - getResolution() - Method in class org.int4.dirk.spi.instantiation.InjectionTargetExtension
-
Returns how the injection target should be resolved.
- getScope(AnnotatedElement) - Method in interface org.int4.dirk.spi.config.ScopeStrategy
-
Returns the scope annotation on the given
AnnotatedElement, if any. - getScopeStrategy() - Method in interface org.int4.dirk.spi.config.InjectorStrategy
-
Returns the
ScopeStrategyto be used. - getSingletonAnnotation() - Method in interface org.int4.dirk.spi.config.ScopeStrategy
-
Returns the annotation that marks the singleton pseudo-scope.
- getTargetClass() - Method in class org.int4.dirk.spi.instantiation.InjectionTargetExtension
-
Returns the target class that is handled by this extension.
I
- InjectionTargetExtension<T,E> - Class in org.int4.dirk.spi.instantiation
-
An interface to allow for custom handling of injection targets of type
T. - InjectionTargetExtension(TypeVariable<Class<T>>, Resolution, InstanceProvider<T, E>) - Constructor for class org.int4.dirk.spi.instantiation.InjectionTargetExtension
-
Constructs a new instance.
- InjectorStrategy - Interface in org.int4.dirk.spi.config
-
Strategy for controlling the behavior of an injector.
- Instance<T> - Interface in org.int4.dirk.spi.instantiation
-
Allows dynamic access to instances created by an injector.
- InstanceProvider<T,E> - Interface in org.int4.dirk.spi.instantiation
-
Provides instances of type
Tcreated from elements of typeE. - isActive() - Method in class org.int4.dirk.spi.scope.AbstractScopeResolver
- isActive() - Method in interface org.int4.dirk.spi.scope.ScopeResolver
-
Returns
truewhen this scope is currently active, otherwisefalse. - isOptional(AnnotatedElement) - Method in interface org.int4.dirk.spi.config.AnnotationStrategy
-
Checks if the given
AnnotatedElementis optional. - isPseudoScope(Annotation) - Method in interface org.int4.dirk.spi.config.ScopeStrategy
-
Returns whether the given annotation is a pseudo-scope.
- isQualifier(Annotation) - Method in interface org.int4.dirk.spi.config.AnnotationStrategy
-
Checks if the given
Annotationis a qualifier annotation.
L
- LAZY - org.int4.dirk.spi.instantiation.Resolution
-
No restrictions are placed upon the dependency at registration time.
- LifeCycleCallbacks - Interface in org.int4.dirk.spi.config
-
Interface for calling life cycle methods on a given instance.
- LifeCycleCallbacksFactory - Interface in org.int4.dirk.spi.config
-
Factory for
LifeCycleCallbacks.
N
- needsDestroy() - Method in interface org.int4.dirk.spi.config.LifeCycleCallbacks
-
Checks whether any calls have been registered for the pre-destroy life cycle phase.
O
- org.int4.dirk.spi.config - package org.int4.dirk.spi.config
-
Provides configuration interfaces for injectors.
- org.int4.dirk.spi.definition - package org.int4.dirk.spi.definition
-
Provides the type registration extension interface.
- org.int4.dirk.spi.instantiation - package org.int4.dirk.spi.instantiation
-
Provides the injection target extension interface.
- org.int4.dirk.spi.scope - package org.int4.dirk.spi.scope
-
Provides the interface for custom scope resolvers.
P
- postConstruct(Object) - Method in interface org.int4.dirk.spi.config.LifeCycleCallbacks
-
Calls all post construct life cycle methods which were discovered on a type on an instance of the same type.
- preDestroy(Object) - Method in interface org.int4.dirk.spi.config.LifeCycleCallbacks
-
Calls all pre-destroy life cycle methods which were discovered on a type on an instance of the same type.
- ProxyStrategy - Interface in org.int4.dirk.spi.config
-
A strategy that determines how to create proxies.
- ProxyStrategy.InstanceSupplier<T> - Interface in org.int4.dirk.spi.config
-
Supplies instances that are wrapped by a proxy.
- put(Object, CreationalContext<?>) - Method in class org.int4.dirk.spi.scope.AbstractScopeResolver
- put(Object, CreationalContext<?>) - Method in interface org.int4.dirk.spi.scope.ScopeResolver
-
Adds a
CreationalContextto this scope resolver under the given key.
R
- release() - Method in interface org.int4.dirk.spi.scope.CreationalContext
-
Releases this context.
- remove(Object) - Method in class org.int4.dirk.spi.scope.AbstractScopeResolver
- remove(Object) - Method in interface org.int4.dirk.spi.scope.ScopeResolver
-
Removes the given key from this scope resolver.
- Resolution - Enum in org.int4.dirk.spi.instantiation
-
Resolution determines how a dependency should be treated by an injector.
S
- ScopeResolver - Interface in org.int4.dirk.spi.scope
-
Handles resolving of types with a specific scope annotation.
- ScopeStrategy - Interface in org.int4.dirk.spi.config
-
Defines the strategy for scope handling.
- select(Annotation...) - Method in interface org.int4.dirk.spi.instantiation.Instance
-
Creates an
Instancebased on this one which further narrows the potential matching instances by requiring additional qualifiers. - select(Class<U>, Annotation...) - Method in interface org.int4.dirk.spi.instantiation.Instance
-
Creates an
Instancebased on this one which further narrows the potential matching instances to a subtype ofTand the given additional qualifiers. - select(TypeLiteral<U>, Annotation...) - Method in interface org.int4.dirk.spi.instantiation.Instance
-
Creates an
Instancebased on this one which further narrows the potential matching instances to a subtype ofTand the given additional qualifiers.
T
- TypeRegistrationExtension - Interface in org.int4.dirk.spi.definition
-
An extension called during registration of types to derive and register additional types for a given type.
- TypeRegistrationExtension.Registry - Interface in org.int4.dirk.spi.definition
-
Allows registration of newly derived types.
U
- UnknownScopeException - Exception in org.int4.dirk.spi.scope
-
Thrown when an attempt is made to register an injectable which was annotated with a scope for which no corresponding
ScopeResolverwas provided. - UnknownScopeException(String) - Constructor for exception org.int4.dirk.spi.scope.UnknownScopeException
-
Constructs a new instance.
V
- valueOf(String) - Static method in enum org.int4.dirk.spi.instantiation.Resolution
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum org.int4.dirk.spi.instantiation.Resolution
-
Returns an array containing the constants of this enum type, in the order they are declared.
All Classes All Packages