A C D E F G I L N O P R S T U V 
All Classes All Packages

A

AbstractScopeResolver<S> - Class in org.int4.dirk.spi.scope
Abstract base implementation of a ScopeResolver which 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 Field and the field's owner Type.
add(Method, Type) - Method in interface org.int4.dirk.spi.definition.TypeRegistrationExtension.Registry
Adds a derived type given a Method and the method's owner Type.
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 LifeCycleCallbacks for a given class.
createProxyFactory(Class<T>) - Method in interface org.int4.dirk.spi.config.ProxyStrategy
Creates a proxy factory for the given Class and 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 Instance or one of its children.
destroyAll(Collection<T>) - Method in interface org.int4.dirk.spi.instantiation.Instance
Destroys a collection of instances created with this Instance or 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 CreationalContext by key in the current active scope, or return null if 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 AnnotationStrategy to be used.
getCurrentScope() - Method in class org.int4.dirk.spi.scope.AbstractScopeResolver
Returns the current scope, or null if 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 TypeVariable which represents the element type E.
getInjectAnnotations(AnnotatedElement) - Method in interface org.int4.dirk.spi.config.AnnotationStrategy
Returns all Annotations on the given AnnotatedElement which are inject annotations.
getInstance(Instance<E>) - Method in interface org.int4.dirk.spi.instantiation.InstanceProvider
Creates an instance of type T using the given Instance.
getInstanceProvider() - Method in class org.int4.dirk.spi.instantiation.InjectionTargetExtension
Returns the InstanceProvider that can create the type handled by this extension.
getLifeCycleCallbacksFactory() - Method in interface org.int4.dirk.spi.config.InjectorStrategy
Returns the LifeCycleCallbacksFactory to be used.
getProxyStrategy() - Method in interface org.int4.dirk.spi.config.InjectorStrategy
Returns the ProxyStrategy to be used.
getQualifiers(AnnotatedElement) - Method in interface org.int4.dirk.spi.config.AnnotationStrategy
Returns all Annotations on the given AnnotatedElement which 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 ScopeStrategy to 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 T created from elements of type E.
isActive() - Method in class org.int4.dirk.spi.scope.AbstractScopeResolver
 
isActive() - Method in interface org.int4.dirk.spi.scope.ScopeResolver
Returns true when this scope is currently active, otherwise false.
isOptional(AnnotatedElement) - Method in interface org.int4.dirk.spi.config.AnnotationStrategy
Checks if the given AnnotatedElement is 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 Annotation is 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 CreationalContext to 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 Instance based 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 Instance based on this one which further narrows the potential matching instances to a subtype of T and the given additional qualifiers.
select(TypeLiteral<U>, Annotation...) - Method in interface org.int4.dirk.spi.instantiation.Instance
Creates an Instance based on this one which further narrows the potential matching instances to a subtype of T and 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 ScopeResolver was 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.
A C D E F G I L N O P R S T U V 
All Classes All Packages