A B C D E F G H I K L M N O P Q R S T U V W
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(int[], int) - Static method in class org.int4.dirk.org.apache.commons.lang3.ArrayUtils
-
Copies the given array and adds the given element at the end of the new array.
- add(Field, Type) - Method in interface org.int4.dirk.spi.discovery.TypeRegistrationExtension.Registry
-
Adds a derived type given a
Fieldand the field's ownerType. - add(Method, Type) - Method in interface org.int4.dirk.spi.discovery.TypeRegistrationExtension.Registry
-
Adds a derived type given a
Methodand the method's ownerType. - add(Type) - Method in interface org.int4.dirk.spi.discovery.TypeRegistrationExtension.Registry
-
Adds a derived type given a
Type. - AmbiguousDependencyException - Exception in org.int4.dirk.api.definition
-
Thrown when there are multiple candidates for a dependency where only one is expected.
- AmbiguousDependencyException(String) - Constructor for exception org.int4.dirk.api.definition.AmbiguousDependencyException
-
Constructs a new instance.
- AmbiguousRequiredDependencyException - Exception in org.int4.dirk.api.definition
-
Thrown when an attempt is made to register a type that would cause a dependency required by another type to become ambiguous.
- AmbiguousRequiredDependencyException(String) - Constructor for exception org.int4.dirk.api.definition.AmbiguousRequiredDependencyException
-
Constructs a new instance.
- AmbiguousResolutionException - Exception in org.int4.dirk.api.instantiation
-
Thrown when multiple matching instances were available.
- AmbiguousResolutionException(String) - Constructor for exception org.int4.dirk.api.instantiation.AmbiguousResolutionException
-
Constructs a new instance.
- AnnotationBasedLifeCycleCallbacksFactory - Class in org.int4.dirk.library
-
Implementation of a
LifeCycleCallbacksFactorywhich determines which life cycle methods to call based on configurable annotations. - AnnotationBasedLifeCycleCallbacksFactory(Class<? extends Annotation>, Class<? extends Annotation>) - Constructor for class org.int4.dirk.library.AnnotationBasedLifeCycleCallbacksFactory
-
Constructs a new instance.
- Annotations - Class in org.int4.dirk.util
-
Utilities for working with annotations.
- Annotations() - Constructor for class org.int4.dirk.util.Annotations
- AnnotationStrategy - Interface in org.int4.dirk.spi.config
-
Strategy for checking and obtaining annotations relevant to dependency injection.
- Any - Annotation Type in org.int4.dirk.annotations
-
The any qualifier type.
- Argument - Annotation Type in org.int4.dirk.annotations
-
Indicates a field or method argument is a required argument to be provided at runtime via a factory used for assisted injection.
- ArrayUtils - Class in org.int4.dirk.org.apache.commons.lang3
-
Operations on arrays, primitive arrays (like
int[]) and primitive wrapper arrays (likeInteger[]). - ArrayUtils() - Constructor for class org.int4.dirk.org.apache.commons.lang3.ArrayUtils
- Assisted - Annotation Type in org.int4.dirk.annotations
-
Marks a type with a single abstract method to be automatically created by the assisted type registration extension.
- assistedAnnotationClass() - Method in interface org.int4.dirk.extensions.assisted.AssistedAnnotationStrategy
-
Returns the
Classof the marker annotation to indicate a producer should be provided by the assisted injection extension. - assistedAnnotationClass() - Method in class org.int4.dirk.extensions.assisted.ConfigurableAssistedAnnotationStrategy
- AssistedAnnotationStrategy<P> - Interface in org.int4.dirk.extensions.assisted
-
Annotation strategy for
AssistedTypeRegistrationExtension. - AssistedTypeRegistrationExtension - Class in org.int4.dirk.extensions.assisted
-
Extension which provides implementations of abstract classes or interfaces annotated with the configured assist annotation.
- AssistedTypeRegistrationExtension(AnnotationStrategy, LifeCycleCallbacksFactory, AssistedAnnotationStrategy<?>) - Constructor for class org.int4.dirk.extensions.assisted.AssistedTypeRegistrationExtension
-
Constructs a new instance.
- AssistedTypeRegistrationExtension.Interceptor<P> - Class in org.int4.dirk.extensions.assisted
-
Interceptor for generated subclass of assisted injection factories.
- associateIfAbsent(String, Supplier<T>) - Method in interface org.int4.dirk.core.definition.Binding
-
Associate extra data with this binding.
- autoDiscovering(ScopeResolver...) - Static method in class org.int4.dirk.cdi.Injectors
-
Creates an
Injectorwith auto discovery activated and the givenScopeResolvers. - autoDiscovering(ScopeResolver...) - Static method in class org.int4.dirk.di.Injectors
-
Creates an
Injectorwith auto discovery activated and the givenScopeResolvers. - autoDiscovering(ScopeResolver...) - Static method in class org.int4.dirk.jakarta.Injectors
-
Creates an
Injectorwith auto discovery activated and the givenScopeResolvers. - autoDiscovering(ScopeResolver...) - Static method in class org.int4.dirk.jsr330.Injectors
-
Creates an
Injectorwith auto discovery activated and the givenScopeResolvers. - AutoDiscoveryException - Exception in org.int4.dirk.api.definition
-
Thrown when auto discovery is allowed and the types discovered have definition problems or fail to register as a coherent whole.
- AutoDiscoveryException(String, Throwable) - Constructor for exception org.int4.dirk.api.definition.AutoDiscoveryException
-
Constructs a new instance.
B
- BadQualifiedTypeException - Exception in org.int4.dirk.core.definition
-
Thrown when a
QualifiedTypeis encountered that is unsuitable for injection. - BadQualifiedTypeException(String) - Constructor for exception org.int4.dirk.core.definition.BadQualifiedTypeException
-
Constructs a new instance.
- Binding - Interface in org.int4.dirk.core.definition
-
Bindings represent targets where values can be injected into an instance.
- BindingProvider - Class in org.int4.dirk.core.definition
-
Provides
Bindings for constructors, methods and fields. - BindingProvider(AnnotationStrategy, InjectionTargetExtensionStore) - Constructor for class org.int4.dirk.core.definition.BindingProvider
-
Constructs a new instance.
- BindingProvider.InjectionType - Class in org.int4.dirk.core.definition
- build() - Method in class org.int4.dirk.org.apache.commons.lang3.reflect.TypeUtils.WildcardTypeBuilder
-
Builds the type.
- ByteBuddyProxyStrategy - Class in org.int4.dirk.extensions.proxy
-
An implementation of
ProxyStrategywhich uses Byte Buddy to implement the proxy. - ByteBuddyProxyStrategy() - Constructor for class org.int4.dirk.extensions.proxy.ByteBuddyProxyStrategy
- ByteBuddyProxyStrategy.Interceptor - Class in org.int4.dirk.extensions.proxy
-
Interceptor class to call the underlying delegate object when the proxy is accessed.
C
- CandidateRegistry - Interface in org.int4.dirk.api
-
Provides methods to manage injection candidates, like registering and removing.
- Classes - Class in org.int4.dirk.util
-
Support functions for
Classes. - Classes() - Constructor for class org.int4.dirk.util.Classes
- ClassInjectableFactory - Class in org.int4.dirk.core.definition
-
Factory interface for creating
Injectables given aType. - ClassInjectableFactory(BindingProvider, InjectableFactory, LifeCycleCallbacksFactory) - Constructor for class org.int4.dirk.core.definition.ClassInjectableFactory
-
Constructs a new instance.
- ClassObjectFactory<T> - Class in org.int4.dirk.core.definition.factory
-
Object factory for concrete classes.
- ClassObjectFactory(Constructor<T>, LifeCycleCallbacks) - Constructor for class org.int4.dirk.core.definition.factory.ClassObjectFactory
-
Constructs a new instance.
- ClassUtils - Class in org.int4.dirk.org.apache.commons.lang3
-
Operates on classes without using reflection.
- ClassUtils() - Constructor for class org.int4.dirk.org.apache.commons.lang3.ClassUtils
- ComponentScanner - Class in org.int4.dirk.plugins
-
Provides methods to scan packages for injectables.
- ComponentScannerFactory - Class in org.int4.dirk.plugins
-
A factory for
ComponentScanners which can be configured with relevant annotations to scan for. - ComponentScannerFactory(AnnotatedElement[], AnnotatedElement[], AnnotatedElement[], AnnotatedElement[]) - Constructor for class org.int4.dirk.plugins.ComponentScannerFactory
-
Constructs a new instance.
- ComponentScannerFactory(AnnotatedElement[], AnnotatedElement[], AnnotatedElement[], AnnotatedElement[], Predicate<Class<?>>) - Constructor for class org.int4.dirk.plugins.ComponentScannerFactory
-
Constructs a new instance.
- ConfigurableAnnotationStrategy - Class in org.int4.dirk.library
-
Implementation of
AnnotationStrategywhich allows configuring one or more annotations used to control injection. - ConfigurableAnnotationStrategy(Class<? extends Annotation>, Class<? extends Annotation>, Class<? extends Annotation>) - Constructor for class org.int4.dirk.library.ConfigurableAnnotationStrategy
-
Constructs a new instance.
- ConfigurableAssistedAnnotationStrategy<A extends java.lang.annotation.Annotation,P> - Class in org.int4.dirk.extensions.assisted
-
An implementation of
AssistedAnnotationStrategywhich can be configured with custom annotations and which extract argument names via the given argument annotation or determines them by parameter, field or method name. - ConfigurableAssistedAnnotationStrategy(Class<? extends Annotation>, Class<A>, Function<AnnotatedElement, String>, Annotation, Class<P>, Function<P, Object>) - Constructor for class org.int4.dirk.extensions.assisted.ConfigurableAssistedAnnotationStrategy
-
Constructs a new instance.
- Constructable<T> - Interface in org.int4.dirk.core.definition.injection
-
Provides an object, potentially constructing it directly or indirectly and any other objects that it depends on.
- contains(Object[], Object) - Static method in class org.int4.dirk.org.apache.commons.lang3.ArrayUtils
-
Checks if the object is in the given array.
- contains(Type, Object...) - Method in interface org.int4.dirk.api.CandidateRegistry
-
Returns
truewhen the given type with the given qualifiers is present, otherwisefalse. - contains(Type, Object...) - Method in class org.int4.dirk.core.StandardInjector
- contains(Key) - Method in class org.int4.dirk.core.store.InjectableStore
-
Checks if there is an
Injectableassociated with the givenKeyin the store. - contains(Key) - Method in class org.int4.dirk.core.store.QualifiedTypeStore
-
Checks if there is a type
Tassociated with the givenKeyin the store. - containsTypeVariables(Type) - Static method in class org.int4.dirk.org.apache.commons.lang3.reflect.TypeUtils
-
Tests, recursively, whether any of the type parameters associated with
typeare bound to variables. - containsTypeVariables(Type) - Static method in class org.int4.dirk.util.Types
-
Checks if any type parameters for the given
Typeare bound to variables. - create() - Method in interface org.int4.dirk.spi.instantiation.InstantiationContext
-
Creates an instance of type
T. - create() - Method in interface org.int4.dirk.spi.scope.CreationalContext
-
Creates a new instance of type
Twrapped in aCreationalContext.Reference. - create(Class<?>) - Method in class org.int4.dirk.library.AnnotationBasedLifeCycleCallbacksFactory
- create(Class<?>) - Method in interface org.int4.dirk.spi.config.LifeCycleCallbacksFactory
-
Creates a
LifeCycleCallbacksfor a given class. - create(Field, Type) - Method in class org.int4.dirk.core.definition.FieldInjectableFactory
-
Creates a new
Injectable. - create(Method, Type) - Method in class org.int4.dirk.core.definition.MethodInjectableFactory
-
Creates a new
Injectable. - create(Type) - Method in class org.int4.dirk.core.definition.ClassInjectableFactory
-
Attempts to create a new
Injectablefrom the givenType. - create(Type, AnnotatedElement) - Method in interface org.int4.dirk.core.definition.GenericBindingProvider.BindingFactory
-
Creates a binding of type
B. - create(Type, Member, AnnotatedElement, List<Binding>, Constructable<T>) - Method in interface org.int4.dirk.core.definition.InjectableFactory
-
Creates
Injectables given an ownerType, an optionalMemberanAnnotatedElement, a list ofBindings and aConstructable. - create(String...) - Method in class org.int4.dirk.plugins.ComponentScannerFactory
-
Creates a new
ComponentScannerto scan for the given packages. - create(URL...) - Method in class org.int4.dirk.plugins.ComponentScannerFactory
-
Creates a new
ComponentScannerto scan for the givenURLs. - create(List<Injection>) - Method in class org.int4.dirk.core.definition.factory.ClassObjectFactory
- create(List<Injection>) - Method in class org.int4.dirk.core.definition.factory.FieldObjectFactory
- create(List<Injection>) - Method in class org.int4.dirk.core.definition.factory.MethodObjectFactory
- create(List<Injection>) - Method in interface org.int4.dirk.core.definition.injection.Constructable
-
Creates an instance.
- create(Resolver<Injectable<?>>, Collection<Type>) - Method in interface org.int4.dirk.core.discovery.DiscovererFactory
-
Given a list of
Types, returns aDiscovererwhich will produce injectables for each of the types given and all injectables that could be derived or discovered using the given types as starting point. - create(Resolver<Injectable<?>>, Injectable<?>) - Method in interface org.int4.dirk.core.discovery.DiscovererFactory
-
Given an
Injectable, returns aDiscovererwhich will produce the given injectable and all injectables that could be derived or discovered using the injectable as starting point. - create(T, Annotation...) - Method in class org.int4.dirk.core.definition.InstanceInjectableFactory
-
Creates a new
Injectable. - createAll() - Method in interface org.int4.dirk.spi.instantiation.InstantiationContext
-
Creates all instances of type
Tthis context can provide. - createProxyFactory(Class<T>) - Method in class org.int4.dirk.extensions.proxy.ByteBuddyProxyStrategy
- createProxyFactory(Class<T>) - Method in class org.int4.dirk.library.NoProxyStrategy
- 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.
- CreationalContext.Reference<T> - Interface in org.int4.dirk.spi.scope
-
A reference to an instance created by the
CreationalContextwith which the created instance can be released. - CreationException - Exception in org.int4.dirk.api.instantiation
-
Thrown when during (post-)construction of a dependency a problem occurs.
- CreationException(String) - Constructor for exception org.int4.dirk.api.instantiation.CreationException
-
Constructs a new instance.
- CreationException(String, Throwable) - Constructor for exception org.int4.dirk.api.instantiation.CreationException
-
Constructs a new instance.
- CyclicDependencyException - Exception in org.int4.dirk.api.definition
-
Thrown when a type or a group of types which are being registered has a dependency which directly or indirectly refers to the type containing the dependency, otherwise known as a cyclical dependency.
- CyclicDependencyException(String) - Constructor for exception org.int4.dirk.api.definition.CyclicDependencyException
-
Constructs a new instance.
D
- Database - Interface in org.int4.dirk.test.plugin
- Default - Annotation Type in org.int4.dirk.annotations
-
The default qualifier type.
- DefaultInjectorStrategy - Class in org.int4.dirk.library
-
Implementation of
InjectorStrategy. - DefaultInjectorStrategy(AnnotationStrategy, ScopeStrategy, ProxyStrategy, LifeCycleCallbacksFactory) - Constructor for class org.int4.dirk.library.DefaultInjectorStrategy
-
Constructs a new instance.
- DefinitionException - Exception in org.int4.dirk.api.definition
-
Thrown during registration of types or instances when the type is incorrectly annotated, cannot be constructed or cannot be injected.
- DefinitionException(AnnotatedElement, String) - Constructor for exception org.int4.dirk.api.definition.DefinitionException
-
Constructs a new instance.
- DefinitionException(AnnotatedElement, String, Throwable) - Constructor for exception org.int4.dirk.api.definition.DefinitionException
-
Constructs a new instance.
- DependencyException - Exception in org.int4.dirk.api.definition
-
Base exception which signals when an Injector would no longer be able to supply all dependencies for all types it manages if the current action would be executed.
- DependencyException(String) - Constructor for exception org.int4.dirk.api.definition.DependencyException
-
Constructs a new instance.
- DependencyException(String, Throwable) - Constructor for exception org.int4.dirk.api.definition.DependencyException
-
Constructs a new instance.
- Dependent - Annotation Type in org.int4.dirk.annotations
-
Default scope for unscoped objects.
- Dependent - Annotation Type in org.int4.dirk.jsr330
-
Default scope for unscoped objects.
- deriveTypes(TypeRegistrationExtension.Registry, Type) - Method in class org.int4.dirk.extensions.assisted.AssistedTypeRegistrationExtension
- deriveTypes(TypeRegistrationExtension.Registry, Type) - Method in class org.int4.dirk.library.ProducesTypeRegistrationExtension
- deriveTypes(TypeRegistrationExtension.Registry, Type) - Method in class org.int4.dirk.library.ProviderTypeRegistrationExtension
- deriveTypes(TypeRegistrationExtension.Registry, Type) - Method in interface org.int4.dirk.spi.discovery.TypeRegistrationExtension
-
Called during registration of new types to allow the extension to register further types that can be directly derived from the given
Type. - Description - Class in org.int4.dirk.core.util
-
Utility class to describe classes as text.
- Description() - Constructor for class org.int4.dirk.core.util.Description
- destroy(T) - Method in class org.int4.dirk.core.definition.factory.ClassObjectFactory
- destroy(T) - Method in class org.int4.dirk.core.definition.factory.FieldObjectFactory
- destroy(T) - Method in class org.int4.dirk.core.definition.factory.MethodObjectFactory
- destroy(T) - Method in interface org.int4.dirk.core.definition.injection.Constructable
-
Destroys an instance.
- destroyScope(S) - Method in class org.int4.dirk.spi.scope.AbstractScopeResolver
-
Destroys the given scope.
- determineArgumentName(AccessibleObject) - Method in interface org.int4.dirk.extensions.assisted.AssistedAnnotationStrategy
-
Determines the name of the argument given an argument annotation and an
AccessibleObject. - determineArgumentName(AccessibleObject) - Method in class org.int4.dirk.extensions.assisted.ConfigurableAssistedAnnotationStrategy
- determineArgumentName(Parameter) - Method in interface org.int4.dirk.extensions.assisted.AssistedAnnotationStrategy
-
Determines the name of the argument given an argument annotation and a
Parameter. - determineArgumentName(Parameter) - Method in class org.int4.dirk.extensions.assisted.ConfigurableAssistedAnnotationStrategy
- discover() - Method in interface org.int4.dirk.core.discovery.Discoverer
-
Discovers additional
Injectables. - Discoverer - Interface in org.int4.dirk.core.discovery
-
Potentially discovers additional
Injectables. - DiscovererFactory - Interface in org.int4.dirk.core.discovery
-
Gathers fully expanded sets of
Injectables based on the given inputs. - DuplicateDependencyException - Exception in org.int4.dirk.api.definition
-
Thrown when attempting to add a dependency which was already added to the store.
- DuplicateDependencyException(String) - Constructor for exception org.int4.dirk.api.definition.DuplicateDependencyException
-
Constructs a new instance.
E
- EMPTY_BOOLEAN_ARRAY - Static variable in class org.int4.dirk.org.apache.commons.lang3.ArrayUtils
-
An empty immutable
booleanarray. - EMPTY_BOOLEAN_OBJECT_ARRAY - Static variable in class org.int4.dirk.org.apache.commons.lang3.ArrayUtils
-
An empty immutable
Booleanarray. - EMPTY_CHAR_ARRAY - Static variable in class org.int4.dirk.org.apache.commons.lang3.ArrayUtils
-
An empty immutable
chararray. - EMPTY_CLASS_ARRAY - Static variable in class org.int4.dirk.org.apache.commons.lang3.ArrayUtils
-
An empty immutable
Classarray. - EMPTY_INT_ARRAY - Static variable in class org.int4.dirk.org.apache.commons.lang3.ArrayUtils
-
An empty immutable
intarray. - EMPTY_STRING_ARRAY - Static variable in class org.int4.dirk.org.apache.commons.lang3.ArrayUtils
-
An empty immutable
Stringarray. - equals(Object) - Method in class org.int4.dirk.core.definition.Key
- equals(Object) - Method in class org.int4.dirk.core.definition.QualifiedType
- ExtendedScopeResolver - Class in org.int4.dirk.core.definition
-
Wrapper for
ScopeResolverwith additional information useful for the internal workings of the injector framework. - ExtendedScopeResolver(ScopeResolver, boolean, boolean) - Constructor for class org.int4.dirk.core.definition.ExtendedScopeResolver
-
Constructs a new instance.
F
- FancyTextProvider - Class in org.int4.dirk.test.textprovider
- FancyTextProvider() - Constructor for class org.int4.dirk.test.textprovider.FancyTextProvider
- FieldInjectableFactory - Class in org.int4.dirk.core.definition
- FieldInjectableFactory(BindingProvider, InjectableFactory) - Constructor for class org.int4.dirk.core.definition.FieldInjectableFactory
-
Constructs a new instance.
- FieldObjectFactory<T> - Class in org.int4.dirk.core.definition.factory
-
A
Constructablewhich reads a field to obtain an instance. - FieldObjectFactory(Field) - Constructor for class org.int4.dirk.core.definition.factory.FieldObjectFactory
-
Constructs a new instance.
- Fields - Class in org.int4.dirk.util
-
Support functions for
Methods. - Fields() - Constructor for class org.int4.dirk.util.Fields
- findAnnotated(Class<?>, Class<? extends Annotation>) - Static method in class org.int4.dirk.util.Fields
-
Find all fields with the given annotation.
- findAnnotated(Class<?>, Class<? extends Annotation>) - Static method in class org.int4.dirk.util.Methods
-
Find all methods with the given annotation.
- findAnnotations(AnnotatedElement, Class<? extends Annotation>) - Static method in class org.int4.dirk.util.Annotations
-
Finds all annotations of the given type recursively from the given
AnnotatedElement. - findDirectlyMetaAnnotatedAnnotations(AnnotatedElement, Annotation) - Static method in class org.int4.dirk.util.Annotations
-
Recursively finds annotations directly annotated by a given meta annotation, starting from the given
AnnotatedElement. - findDirectlyMetaAnnotatedAnnotations(AnnotatedElement, Class<? extends Annotation>) - Static method in class org.int4.dirk.util.Annotations
-
Recursively finds annotations directly annotated by a given meta annotation class, starting from the given
AnnotatedElement. - findMetaAnnotatedAnnotations(AnnotatedElement, Annotation) - Static method in class org.int4.dirk.util.Annotations
-
Returns
Annotations on the givenAnnotatedElementwhich are annotated with the given meta annotation directly or indirectly.
G
- generateDisplayNameForClass(Class<?>) - Method in class org.int4.dirk.test.util.ReplaceCamelCaseDisplayNameGenerator
- generateDisplayNameForMethod(Class<?>, Method) - Method in class org.int4.dirk.test.util.ReplaceCamelCaseDisplayNameGenerator
- generateDisplayNameForNestedClass(Class<?>) - Method in class org.int4.dirk.test.util.ReplaceCamelCaseDisplayNameGenerator
- GenericBindingProvider<B> - Class in org.int4.dirk.core.definition
-
Provides bindings for constructors, methods and fields.
- GenericBindingProvider(AnnotationStrategy, GenericBindingProvider.BindingFactory<B>) - Constructor for class org.int4.dirk.core.definition.GenericBindingProvider
-
Constructs a new instance.
- GenericBindingProvider.BindingFactory<B> - Interface in org.int4.dirk.core.definition
-
Factory for creating bindings that have been found.
- 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.scope.CreationalContext.Reference
-
Gets the instance held by this reference.
- get(Object, CreationalContext<T>) - Method in class org.int4.dirk.core.definition.ExtendedScopeResolver
- get(Object, CreationalContext<T>) - Method in class org.int4.dirk.spi.scope.AbstractScopeResolver
- get(Object, CreationalContext<T>) - Method in interface org.int4.dirk.spi.scope.ScopeResolver
-
Returns an existing instance associated with the given key, or uses the given context to create one.
- getAccessibleObject() - Method in interface org.int4.dirk.core.definition.Binding
-
Returns the target
AccessibleObjectfor the binding. - getAnnotatedConstructor(Class<?>) - Method in class org.int4.dirk.core.definition.BindingProvider
-
Returns an annotated
Constructorsuitable for injection. - getAnnotatedConstructor(Class<?>) - Method in class org.int4.dirk.core.definition.GenericBindingProvider
-
Returns an annotated
Constructorsuitable for injection. - getAnnotatedElement() - Method in interface org.int4.dirk.core.definition.Binding
-
Returns the associated
AnnotatedElementfor this binding. - getAnnotation() - Method in class org.int4.dirk.core.definition.ExtendedScopeResolver
- getAnnotation() - Method in class org.int4.dirk.library.SingletonScopeResolver
- getAnnotation() - Method in interface org.int4.dirk.spi.scope.ScopeResolver
-
Returns the annotation this resolver handles.
- getAnnotationStrategy() - Method in class org.int4.dirk.library.DefaultInjectorStrategy
- getAnnotationStrategy() - Method in interface org.int4.dirk.spi.config.InjectorStrategy
-
Returns the
AnnotationStrategyto be used. - getBindings() - Method in interface org.int4.dirk.core.definition.Injectable
-
Returns the
Bindings detected. - getCandidateRegistry() - Method in interface org.int4.dirk.api.Injector
-
Returns a
CandidateRegistry, which can be shared instead of this class to share only methods that can be used to register and remove objects. - getCandidateRegistry() - Method in class org.int4.dirk.core.StandardInjector
- getClassLoader() - Method in class org.int4.dirk.plugins.Plugin
-
Returns the
ClassLoaderif the plugin was not unloaded. - getConstructor(Class<T>) - Method in class org.int4.dirk.core.definition.BindingProvider
-
Returns a
Constructorsuitable for injection. - getConstructor(Class<T>) - Method in class org.int4.dirk.core.definition.GenericBindingProvider
-
Returns a
Constructorsuitable for injection. - getCurrentScope() - Method in class org.int4.dirk.library.SingletonScopeResolver
- getCurrentScope() - Method in class org.int4.dirk.spi.scope.AbstractScopeResolver
-
Returns the current scope, or
nullif there is no current scope. - getDefaultAnnotation() - Method in class org.int4.dirk.library.SimpleScopeStrategy
- getDefaultAnnotation() - Method in interface org.int4.dirk.spi.config.ScopeStrategy
-
Returns the annotation that marks the default scope.
- getDependentAnnotation() - Method in class org.int4.dirk.library.SimpleScopeStrategy
- getDependentAnnotation() - Method in interface org.int4.dirk.spi.config.ScopeStrategy
-
Returns the annotation that marks the dependent pseudo-scope.
- getElementKey() - Method in interface org.int4.dirk.core.definition.Binding
-
Returns the
Keyof which individual elements of the injection target consist. - getElementType() - Method in class org.int4.dirk.core.definition.BindingProvider.InjectionType
- getElementType(Type) - Method in class org.int4.dirk.cdi.InstanceInjectionTargetExtension
- getElementType(Type) - Method in class org.int4.dirk.library.ListInjectionTargetExtension
- getElementType(Type) - Method in class org.int4.dirk.library.ProviderInjectionTargetExtension
- getElementType(Type) - Method in class org.int4.dirk.library.SetInjectionTargetExtension
- getElementType(Type) - Method in interface org.int4.dirk.spi.instantiation.InjectionTargetExtension
-
Returns the element type of the given type by unwrapping the given type.
- getExtension(Class<T>) - Method in class org.int4.dirk.core.definition.InjectionTargetExtensionStore
-
Gets the
InjectionTargetExtensionwhich handles the givenClass. - getGenericSuperTypes(Type) - Static method in class org.int4.dirk.util.Types
-
Given a
Type, returns a set of all types extended or implemented. - getImplicitUpperBounds(WildcardType) - Static method in class org.int4.dirk.org.apache.commons.lang3.reflect.TypeUtils
-
Gets an array containing the sole value of
ObjectifWildcardType.getUpperBounds()returns an empty array. - getInjectAnnotations(AnnotatedElement) - Method in class org.int4.dirk.library.ConfigurableAnnotationStrategy
- getInjectAnnotations(AnnotatedElement) - Method in interface org.int4.dirk.spi.config.AnnotationStrategy
-
Returns all
Annotations on the givenAnnotatedElementwhich are inject annotations. - getInstance(Class<T>, Object...) - Method in interface org.int4.dirk.api.InstanceResolver
-
Returns an instance of the given class matching the given criteria (if any) in which all dependencies are injected.
- getInstance(Class<T>, Object...) - Method in class org.int4.dirk.core.StandardInjector
- getInstance(Type, Object...) - Method in interface org.int4.dirk.api.InstanceResolver
-
Returns an instance of the given
Typematching the given criteria (if any) in which all dependencies are injected. - getInstance(Type, Object...) - Method in class org.int4.dirk.core.StandardInjector
- getInstance(InstantiationContext<E>) - Method in class org.int4.dirk.library.ProviderInjectionTargetExtension
- getInstance(InstantiationContext<E>) - Method in interface org.int4.dirk.spi.instantiation.InjectionTargetExtension
-
Creates an instance of type
Tusing the givenInstantiationContext. - getInstance(InstantiationContext<T>) - Method in class org.int4.dirk.cdi.InstanceInjectionTargetExtension
- getInstance(InstantiationContext<T>) - Method in class org.int4.dirk.library.ListInjectionTargetExtension
- getInstance(InstantiationContext<T>) - Method in class org.int4.dirk.library.SetInjectionTargetExtension
- getInstanceResolver() - Method in interface org.int4.dirk.api.Injector
-
Returns an
InstanceResolver, which can be shared instead of this class to share only methods that can be used to instantiate objects. - getInstanceResolver() - Method in class org.int4.dirk.core.StandardInjector
- getInstances(Class<T>, Object...) - Method in interface org.int4.dirk.api.InstanceResolver
-
Returns all instances of the given class matching the given criteria (if any) in which all dependencies are injected.
- getInstances(Class<T>, Object...) - Method in class org.int4.dirk.core.StandardInjector
- getInstances(Type, Object...) - Method in interface org.int4.dirk.api.InstanceResolver
-
Returns all instances of the given
Typematching the given criteria (if any) in which all dependencies are injected. - getInstances(Type, Object...) - Method in class org.int4.dirk.core.StandardInjector
- getLifeCycleCallbacksFactory() - Method in class org.int4.dirk.library.DefaultInjectorStrategy
- getLifeCycleCallbacksFactory() - Method in interface org.int4.dirk.spi.config.InjectorStrategy
-
Returns the
LifeCycleCallbacksFactoryto be used. - getParameter() - Method in interface org.int4.dirk.core.definition.Binding
-
Returns the
Parameterwhen theAccessibleObjectis a constructor or a method. - getProblems() - Method in interface org.int4.dirk.core.discovery.Discoverer
-
Returns a list of problems encountered during discovery.
- getProxyStrategy() - Method in class org.int4.dirk.library.DefaultInjectorStrategy
- getProxyStrategy() - Method in interface org.int4.dirk.spi.config.InjectorStrategy
-
Returns the
ProxyStrategyto be used. - getQualifiers() - Method in interface org.int4.dirk.core.definition.Binding
-
Returns the qualifiers on the injection target.
- getQualifiers() - Method in interface org.int4.dirk.core.definition.Injectable
-
Returns an unmodifiable set of qualifier
Annotations. - getQualifiers() - Method in class org.int4.dirk.core.definition.Key
-
Returns an immutable set of qualifier
Annotations. - getQualifiers() - Method in class org.int4.dirk.core.definition.QualifiedType
-
Returns an immutable set of qualifier
Annotations. - getQualifiers(AnnotatedElement) - Method in class org.int4.dirk.library.ConfigurableAnnotationStrategy
- getQualifiers(AnnotatedElement) - Method in interface org.int4.dirk.spi.config.AnnotationStrategy
-
Returns all
Annotations on the givenAnnotatedElementwhich are qualifier annotations. - getRawType(Type, Type) - Static method in class org.int4.dirk.org.apache.commons.lang3.reflect.TypeUtils
-
Gets the raw type of a Java type, given its context.
- getScope(AnnotatedElement) - Method in class org.int4.dirk.library.SimpleScopeStrategy
- getScope(AnnotatedElement) - Method in interface org.int4.dirk.spi.config.ScopeStrategy
-
Returns the scope annotation on the given
AnnotatedElement, if any. - getScopeResolver() - Method in interface org.int4.dirk.core.definition.Injectable
-
Returns the
ExtendedScopeResolverof thisInjectable. - getScopeStrategy() - Method in class org.int4.dirk.library.DefaultInjectorStrategy
- getScopeStrategy() - Method in interface org.int4.dirk.spi.config.InjectorStrategy
-
Returns the
ScopeStrategyto be used. - getSingletonAnnotation() - Method in class org.int4.dirk.library.SimpleScopeStrategy
- getSingletonAnnotation() - Method in interface org.int4.dirk.spi.config.ScopeStrategy
-
Returns the annotation that marks the singleton pseudo-scope.
- getSuperTypes(Class<?>) - Static method in class org.int4.dirk.util.Types
-
Given a
Class, returns a set of all classes and interfaces extended or implemented. - getTarget() - Method in class org.int4.dirk.core.definition.injection.Injection
-
Returns the target.
- getTargetClass() - Method in class org.int4.dirk.cdi.InstanceInjectionTargetExtension
- getTargetClass() - Method in class org.int4.dirk.library.ListInjectionTargetExtension
- getTargetClass() - Method in class org.int4.dirk.library.ProviderInjectionTargetExtension
- getTargetClass() - Method in class org.int4.dirk.library.SetInjectionTargetExtension
- getTargetClass() - Method in interface org.int4.dirk.spi.instantiation.InjectionTargetExtension
-
Returns the target class extended by this extension.
- getType() - Method in interface org.int4.dirk.core.definition.Binding
-
Returns the
Typeof the injection target. - getType() - Method in interface org.int4.dirk.core.definition.Injectable
-
Returns the
Typewhich is always fully resolved (no type variables) and nevervoid. - getType() - Method in class org.int4.dirk.core.definition.Key
-
Returns the
Type. - getType() - Method in class org.int4.dirk.core.definition.QualifiedType
-
Returns the
Type. - getType() - Method in class org.int4.dirk.test.beans.TextDatabase
- getType() - Method in interface org.int4.dirk.test.plugin.Database
- getType() - Method in class org.int4.dirk.util.TypeReference
-
Gets the referenced type.
- getTypeArguments(ParameterizedType) - Static method in class org.int4.dirk.org.apache.commons.lang3.reflect.TypeUtils
-
Gets all the type arguments for this parameterized type including owner hierarchy arguments such as
Outer<K, V>.Inner<T>.DeepInner<E>. - getTypeArguments(Type, Class<?>) - Static method in class org.int4.dirk.org.apache.commons.lang3.reflect.TypeUtils
-
Gets the type arguments of a class/interface based on a subtype.
- getTypeArguments(Type, Class<?>) - Static method in class org.int4.dirk.util.Types
-
Gets the type arguments of a class/interface based on a subtype.
- getTypeParameter(Type, Class<?>, TypeVariable<?>) - Static method in class org.int4.dirk.util.Types
-
Gets the
Typeof a generic parameter, identified by given by theTypeVariable, of the givenClasswhen resolved against the givenType. - getTypes() - Method in interface org.int4.dirk.core.definition.Injectable
-
Returns the
Types of this injectable. - getTypes() - Method in interface org.int4.dirk.plugins.Module
-
Returns a list of
Types that should be loaded as part of this module. - getTypes() - Method in class org.int4.dirk.plugins.Plugin
-
Returns a list of
Types if the plugin was not unloaded. - getTypes() - Method in class PluginModule
- getTypeTraits() - Method in class org.int4.dirk.cdi.InstanceInjectionTargetExtension
- getTypeTraits() - Method in interface org.int4.dirk.core.definition.Binding
-
Returns the
TypeTraits of this binding. - getTypeTraits() - Method in class org.int4.dirk.core.definition.BindingProvider.InjectionType
- getTypeTraits() - Method in class org.int4.dirk.library.ListInjectionTargetExtension
- getTypeTraits() - Method in class org.int4.dirk.library.ProviderInjectionTargetExtension
- getTypeTraits() - Method in class org.int4.dirk.library.SetInjectionTargetExtension
- getTypeTraits() - Method in interface org.int4.dirk.spi.instantiation.InjectionTargetExtension
-
Returns the
TypeTraits of this extension. - getUpperBounds(WildcardType) - Static method in class org.int4.dirk.util.Types
-
Returns the upper bounds of the given
WildcardType. - getValue() - Method in class org.int4.dirk.core.definition.injection.Injection
-
Returns the value.
H
- hashCode() - Method in class org.int4.dirk.core.definition.Key
- hashCode() - Method in class org.int4.dirk.core.definition.QualifiedType
I
- Injectable<T> - Interface in org.int4.dirk.core.definition
-
Represents a source for an injectable dependency.
- InjectableFactory - Interface in org.int4.dirk.core.definition
-
Factory for
Injectables. - InjectableStore - Class in org.int4.dirk.core.store
-
A store for
Injectables which ensures that it at all times contains only injectables that can be fully resolved. - InjectableStore(ProxyStrategy) - Constructor for class org.int4.dirk.core.store.InjectableStore
-
Constructs a new instance.
- injectAnnotation() - Method in interface org.int4.dirk.extensions.assisted.AssistedAnnotationStrategy
-
Returns the inject annotation supported by the associated injector.
- injectAnnotation() - Method in class org.int4.dirk.extensions.assisted.ConfigurableAssistedAnnotationStrategy
- Injection - Class in org.int4.dirk.core.definition.injection
-
A target and value to be injected.
- Injection(AccessibleObject, Object) - Constructor for class org.int4.dirk.core.definition.injection.Injection
-
Constructs a new instance.
- InjectionException - Exception in org.int4.dirk.api.instantiation
-
Base class for exceptions that can be thrown during injection.
- InjectionException(String) - Constructor for exception org.int4.dirk.api.instantiation.InjectionException
-
Constructs a new instance.
- InjectionException(String, Throwable) - Constructor for exception org.int4.dirk.api.instantiation.InjectionException
-
Constructs a new instance.
- InjectionTargetExtension<T,E> - Interface in org.int4.dirk.spi.instantiation
-
An interface to allow for custom handling of injection targets of type
T. - InjectionTargetExtensionStore - Class in org.int4.dirk.core.definition
-
A store for
InjectionTargetExtensions. - InjectionTargetExtensionStore(Collection<InjectionTargetExtension<?, ?>>) - Constructor for class org.int4.dirk.core.definition.InjectionTargetExtensionStore
-
Constructs a new instance.
- InjectionType(Type, Set<TypeTrait>) - Constructor for class org.int4.dirk.core.definition.BindingProvider.InjectionType
- Injector - Interface in org.int4.dirk.api
-
An injector is a combination of a
CandidateRegistryand anInstanceResolver, providing the functionality of both interfaces in a single type. - Injectors - Class in org.int4.dirk.cdi
-
Factory for CDI style
Injectors. - Injectors - Class in org.int4.dirk.di
-
Factory for
Injectors of various types. - Injectors - Class in org.int4.dirk.jakarta
-
Factory for
Injectors of various types. - Injectors - Class in org.int4.dirk.jsr330
-
Factory for
Injectors of various types. - Injectors() - Constructor for class org.int4.dirk.cdi.Injectors
- Injectors() - Constructor for class org.int4.dirk.di.Injectors
- Injectors() - Constructor for class org.int4.dirk.jakarta.Injectors
- Injectors() - Constructor for class org.int4.dirk.jsr330.Injectors
- InjectorStrategy - Interface in org.int4.dirk.spi.config
-
Strategy for controlling the behavior of an injector.
- InstanceInjectableFactory - Class in org.int4.dirk.core.definition
-
Constructs
Injectables for a given object instance. - InstanceInjectableFactory(InjectableFactory, Annotation) - Constructor for class org.int4.dirk.core.definition.InstanceInjectableFactory
-
Constructs a new instance.
- InstanceInjectionTargetExtension<T> - Class in org.int4.dirk.cdi
-
An
InjectionTargetExtensionwhich provides a partial implementation of theInstanceprovider type. - InstanceInjectionTargetExtension() - Constructor for class org.int4.dirk.cdi.InstanceInjectionTargetExtension
- InstanceResolver - Interface in org.int4.dirk.api
-
Provides methods to resolve
Types to instances. - InstantiationContext<T> - Interface in org.int4.dirk.spi.instantiation
-
A context which can be used to create instances of type
Twhich match all its criteria. - intercept(Object, Object[]) - Method in class org.int4.dirk.extensions.assisted.AssistedTypeRegistrationExtension.Interceptor
-
Called when a factory method call is intercepted.
- intercept(Method, Object[], ProxyStrategy.InstanceSupplier<?>) - Static method in class org.int4.dirk.extensions.proxy.ByteBuddyProxyStrategy.Interceptor
-
Intercepts a proxied method.
- Interceptor() - Constructor for class org.int4.dirk.extensions.proxy.ByteBuddyProxyStrategy.Interceptor
- isActive() - Method in class org.int4.dirk.core.definition.ExtendedScopeResolver
- 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. - isArgument(AnnotatedElement) - Method in interface org.int4.dirk.extensions.assisted.AssistedAnnotationStrategy
-
Checks if the given
AnnotatedElementis annotated as an argument. - isArgument(AnnotatedElement) - Method in class org.int4.dirk.extensions.assisted.ConfigurableAssistedAnnotationStrategy
- isAssignable(Class<?>, Class<?>) - Static method in class org.int4.dirk.org.apache.commons.lang3.ClassUtils
-
Checks if one
Classcan be assigned to a variable of anotherClass. - isAssignable(Type, Type) - Static method in class org.int4.dirk.org.apache.commons.lang3.reflect.TypeUtils
-
Tests if the subject type may be implicitly cast to the target type following the Java generics rules.
- isAssignable(Type, Type) - Static method in class org.int4.dirk.util.Types
-
Checks if the subject type may be implicitly cast to the target type following Java generics rules.
- isAvailable(String) - Static method in class org.int4.dirk.util.Classes
-
Checks if the given class is available on the class path.
- isDependentScope() - Method in class org.int4.dirk.core.definition.ExtendedScopeResolver
-
Returns whether this
ScopeResolverrepresents the dependent pseudo-scope. - isMetaAnnotated(Class<? extends Annotation>, Annotation) - Static method in class org.int4.dirk.util.Annotations
-
Returns
trueif the given annotationClassis directly or indirectly meta annotated with the given meta annotation. - isOptional() - Method in interface org.int4.dirk.core.definition.Binding
-
Returns whether this target accepts
nullas an injection value. - isOptional(AnnotatedElement) - Method in class org.int4.dirk.library.ConfigurableAnnotationStrategy
- isOptional(AnnotatedElement) - Method in interface org.int4.dirk.spi.config.AnnotationStrategy
-
Checks if the given
AnnotatedElementis optional. - isPseudoScope() - Method in class org.int4.dirk.core.definition.ExtendedScopeResolver
-
Returns whether this
ScopeResolverrepresents a pseudo-scope. - isPseudoScope(Annotation) - Method in class org.int4.dirk.library.SimpleScopeStrategy
- isPseudoScope(Annotation) - Method in interface org.int4.dirk.spi.config.ScopeStrategy
-
Returns whether the given annotation is a pseudo-scope.
- isQualifier(Annotation) - Method in class org.int4.dirk.library.ConfigurableAnnotationStrategy
- isQualifier(Annotation) - Method in interface org.int4.dirk.spi.config.AnnotationStrategy
-
Checks if the given
Annotationis a qualifier annotation. - isSameLength(Object, Object) - Static method in class org.int4.dirk.org.apache.commons.lang3.ArrayUtils
-
Checks whether two arrays are the same length, treating
nullarrays as length0. - isUnloaded() - Method in class org.int4.dirk.plugins.Plugin
-
Returns
trueif this plugin is unloaded, otherwisefalse.
K
- Key - Class in org.int4.dirk.core.definition
-
Represents a
Typewith a set of qualifierAnnotations. - Key(Type) - Constructor for class org.int4.dirk.core.definition.Key
-
Constructs a new instance.
- Key(Type, Collection<Annotation>) - Constructor for class org.int4.dirk.core.definition.Key
-
Constructs a new instance.
L
- LAZY - org.int4.dirk.spi.instantiation.TypeTrait
-
Indicates that the instance produced is a provider which will only resolve the key upon use.
- 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. - ListInjectionTargetExtension<T> - Class in org.int4.dirk.library
-
An
InjectionTargetExtensionforLists. - ListInjectionTargetExtension() - Constructor for class org.int4.dirk.library.ListInjectionTargetExtension
- loadPlugin(URL...) - Method in class org.int4.dirk.plugins.PluginManager
-
Loads classes from a plugin defined by a Module.
- loadPluginAndScan(String...) - Method in class org.int4.dirk.plugins.PluginManager
-
Scans the given package prefixes and creates a
Pluginfor any annotated types located during the scan. - loadPluginAndScan(URL...) - Method in class org.int4.dirk.plugins.PluginManager
-
Loads jars at the given
URLs, scans for annotated types and creates aPlugin.
M
- manual(ScopeResolver...) - Static method in class org.int4.dirk.cdi.Injectors
-
Creates an
Injectorwhich must be manually configured with the givenScopeResolvers. - manual(ScopeResolver...) - Static method in class org.int4.dirk.di.Injectors
-
Creates an
Injectorwhich must be manually configured with the givenScopeResolvers. - manual(ScopeResolver...) - Static method in class org.int4.dirk.jakarta.Injectors
-
Creates an
Injectorwhich must be manually configured with the givenScopeResolvers. - manual(ScopeResolver...) - Static method in class org.int4.dirk.jsr330.Injectors
-
Creates an
Injectorwhich must be manually configured with the givenScopeResolvers. - MethodInjectableFactory - Class in org.int4.dirk.core.definition
- MethodInjectableFactory(BindingProvider, InjectableFactory) - Constructor for class org.int4.dirk.core.definition.MethodInjectableFactory
-
Constructs a new instance.
- MethodObjectFactory<T> - Class in org.int4.dirk.core.definition.factory
-
A
Constructableusing a method call to obtain an instance. - MethodObjectFactory(Method) - Constructor for class org.int4.dirk.core.definition.factory.MethodObjectFactory
-
Constructs a new instance.
- Methods - Class in org.int4.dirk.util
-
Support functions for
Methods. - Methods() - Constructor for class org.int4.dirk.util.Methods
- MissingArgumentException - Exception in org.int4.dirk.extensions.assisted
-
Thrown by an
AssistedAnnotationStrategywhen determining an argument name for a method, field or parameter fails. - MissingArgumentException(String) - Constructor for exception org.int4.dirk.extensions.assisted.MissingArgumentException
-
Constructs a new instance.
- MissingDependencyException - Exception in org.int4.dirk.api.definition
-
Thrown when a dependency is not present in the store.
- MissingDependencyException(String) - Constructor for exception org.int4.dirk.api.definition.MissingDependencyException
-
Constructs a new instance.
- Module - Interface in org.int4.dirk.plugins
-
Interface implemented by
PluginModuleclasses which supplies which annotated types are part of a jar is loaded at runtime.
N
- NoProxyStrategy - Class in org.int4.dirk.library
-
An implementation of
ProxyStrategythat will always throw an exception when attempting to create a proxy, effectively disabling the functionality. - NoProxyStrategy() - Constructor for class org.int4.dirk.library.NoProxyStrategy
- NormalScope - Annotation Type in org.int4.dirk.annotations
-
Specifies that an annotation is a normal scope.
O
- of(Class<A>) - Static method in class org.int4.dirk.util.Annotations
-
Creates an
Annotationwithout parameters. - of(Class<A>, Map<String, Object>) - Static method in class org.int4.dirk.util.Annotations
-
Creates an
Annotationwith parameters. - of(Member) - Static method in class org.int4.dirk.core.util.Description
-
Describes a
Member. - ofConstructor(Constructor<?>) - Method in class org.int4.dirk.core.definition.BindingProvider
-
Returns all bindings for the given
Constructor. - ofConstructor(Constructor<?>) - Method in class org.int4.dirk.core.definition.GenericBindingProvider
-
Returns all bindings for the given
Constructor. - ofConstructorAndMembers(Constructor<?>, Class<?>) - Method in class org.int4.dirk.core.definition.BindingProvider
-
Returns all bindings for the given
Constructorand all member bindings for the given class. - ofConstructorAndMembers(Constructor<?>, Class<?>) - Method in class org.int4.dirk.core.definition.GenericBindingProvider
-
Returns all bindings for the given
Constructorand all member bindings for the given class. - ofField(Field, Type) - Method in class org.int4.dirk.core.definition.BindingProvider
-
Returns all bindings for the given
Field. - ofField(Field, Type) - Method in class org.int4.dirk.core.definition.GenericBindingProvider
-
Returns all bindings for the given
Field. - ofMembers(Class<?>) - Method in class org.int4.dirk.core.definition.BindingProvider
-
Returns all member bindings for the given class.
- ofMembers(Class<?>) - Method in class org.int4.dirk.core.definition.GenericBindingProvider
-
Returns all member bindings for the given class.
- ofMethod(Method, Type) - Method in class org.int4.dirk.core.definition.BindingProvider
-
Returns all bindings for the given
Method. - ofMethod(Method, Type) - Method in class org.int4.dirk.core.definition.GenericBindingProvider
-
Returns all bindings for the given
Method. - Opt - Annotation Type in org.int4.dirk.annotations
-
When used in combination with the
Injectannotation indicates that the field or method is optional and can be leftnullif no injection candidate is available. - org.int4.dirk.annotations - package org.int4.dirk.annotations
- org.int4.dirk.api - package org.int4.dirk.api
- org.int4.dirk.api.definition - package org.int4.dirk.api.definition
- org.int4.dirk.api.instantiation - package org.int4.dirk.api.instantiation
- org.int4.dirk.api.scope - package org.int4.dirk.api.scope
- org.int4.dirk.cdi - package org.int4.dirk.cdi
- org.int4.dirk.core - package org.int4.dirk.core
- org.int4.dirk.core.definition - package org.int4.dirk.core.definition
- org.int4.dirk.core.definition.factory - package org.int4.dirk.core.definition.factory
- org.int4.dirk.core.definition.injection - package org.int4.dirk.core.definition.injection
- org.int4.dirk.core.discovery - package org.int4.dirk.core.discovery
- org.int4.dirk.core.store - package org.int4.dirk.core.store
- org.int4.dirk.core.util - package org.int4.dirk.core.util
- org.int4.dirk.di - package org.int4.dirk.di
- org.int4.dirk.extensions.assisted - package org.int4.dirk.extensions.assisted
- org.int4.dirk.extensions.proxy - package org.int4.dirk.extensions.proxy
- org.int4.dirk.jakarta - package org.int4.dirk.jakarta
- org.int4.dirk.jsr330 - package org.int4.dirk.jsr330
- org.int4.dirk.library - package org.int4.dirk.library
- org.int4.dirk.org.apache.commons.lang3 - package org.int4.dirk.org.apache.commons.lang3
- org.int4.dirk.org.apache.commons.lang3.reflect - package org.int4.dirk.org.apache.commons.lang3.reflect
- org.int4.dirk.plugins - package org.int4.dirk.plugins
- org.int4.dirk.spi.config - package org.int4.dirk.spi.config
- org.int4.dirk.spi.discovery - package org.int4.dirk.spi.discovery
- org.int4.dirk.spi.instantiation - package org.int4.dirk.spi.instantiation
- org.int4.dirk.spi.scope - package org.int4.dirk.spi.scope
- org.int4.dirk.test.beans - package org.int4.dirk.test.beans
- org.int4.dirk.test.plugin - package org.int4.dirk.test.plugin
- org.int4.dirk.test.textprovider - package org.int4.dirk.test.textprovider
- org.int4.dirk.test.util - package org.int4.dirk.test.util
- org.int4.dirk.util - package org.int4.dirk.util
P
- parameterize(Class<?>, Type...) - Static method in class org.int4.dirk.org.apache.commons.lang3.reflect.TypeUtils
-
Creates a parameterized type instance.
- parameterize(Class<?>, Type...) - Static method in class org.int4.dirk.util.Types
-
Create a new
ParameterizedTypewith the given type arguments. - Plugin - Class in org.int4.dirk.plugins
-
A list of types with a name and
ClassLoadertogether representing a plugin that can be loaded or unloaded as a whole. - Plugin(String, List<Type>, ClassLoader) - Constructor for class org.int4.dirk.plugins.Plugin
-
Constructs a new instance.
- PluginManager - Class in org.int4.dirk.plugins
-
Manages
Plugins, registering them with aCandidateRegistrywhen loaded and removing them when unloaded. - PluginManager(ComponentScannerFactory, CandidateRegistry) - Constructor for class org.int4.dirk.plugins.PluginManager
-
Constructs a new instance.
- PluginModule - Class in <Unnamed>
- PluginModule() - Constructor for class PluginModule
- 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.
- Primitives - Class in org.int4.dirk.util
-
Utility methods dealing with primitives.
- Primitives() - Constructor for class org.int4.dirk.util.Primitives
- primitiveToWrapper(Class<?>) - Static method in class org.int4.dirk.org.apache.commons.lang3.ClassUtils
-
Converts the specified primitive Class object to its corresponding wrapper Class object.
- Produces - Annotation Type in org.int4.dirk.annotations
-
Indicates a producer method or field.
- ProducesTypeRegistrationExtension - Class in org.int4.dirk.library
-
Extension which looks for members annotated with a produces annotation, and if found registers these with the injector.
- ProducesTypeRegistrationExtension(Class<? extends Annotation>) - Constructor for class org.int4.dirk.library.ProducesTypeRegistrationExtension
-
Constructs a new instance.
- providerClass() - Method in interface org.int4.dirk.extensions.assisted.AssistedAnnotationStrategy
-
Returns the
Classof the provider type that can be used with the associated injector. - providerClass() - Method in class org.int4.dirk.extensions.assisted.ConfigurableAssistedAnnotationStrategy
- ProviderInjectionTargetExtension<P,E> - Class in org.int4.dirk.library
-
Configurable provider
InjectionTargetExtensionwhich allows selecting the type of provider it should handle. - ProviderInjectionTargetExtension(Class<P>, Function<Supplier<E>, P>) - Constructor for class org.int4.dirk.library.ProviderInjectionTargetExtension
-
Constructs a new instance.
- ProviderTypeRegistrationExtension - Class in org.int4.dirk.library
-
This extension detects if a class implements a method of a provider interface and registers an additional type for the type the provider provides.
- ProviderTypeRegistrationExtension(Method) - Constructor for class org.int4.dirk.library.ProviderTypeRegistrationExtension
-
Constructs a new instance.
- provideText() - Method in interface org.int4.dirk.test.plugin.TextProvider
- provideText() - Method in class org.int4.dirk.test.textprovider.FancyTextProvider
- provideText() - Method in class org.int4.dirk.test.textprovider.StyledTextProvider
- provideText() - Method in class org.int4.dirk.test.textprovider.UppercaseTextProvider
- provision(P) - Method in interface org.int4.dirk.extensions.assisted.AssistedAnnotationStrategy
-
Return the result of calling the given provider
P. - provision(P) - Method in class org.int4.dirk.extensions.assisted.ConfigurableAssistedAnnotationStrategy
- 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(T) - Method in class org.int4.dirk.core.store.QualifiedTypeStore
-
Adds a type
Tto the store. - putAll(Collection<Injectable<?>>) - Method in class org.int4.dirk.core.store.InjectableStore
-
Adds multiple
Injectables to the store. - putAll(Collection<T>) - Method in class org.int4.dirk.core.store.QualifiedTypeStore
-
Adds multiple type
Ts to the store.
Q
- QualifiedType - Class in org.int4.dirk.core.definition
-
Represents a fully resolved
Typewith a set of qualifierAnnotations. - QualifiedType(Type) - Constructor for class org.int4.dirk.core.definition.QualifiedType
-
Constructs a new instance.
- QualifiedType(Type, Collection<Annotation>) - Constructor for class org.int4.dirk.core.definition.QualifiedType
-
Constructs a new instance.
- QualifiedTypeStore<T> - Class in org.int4.dirk.core.store
-
Store which keeps track of types
Tfor which aKeycan be extracted. - QualifiedTypeStore(Function<T, Key>, Function<T, Set<Type>>) - Constructor for class org.int4.dirk.core.store.QualifiedTypeStore
-
Constructs a new instance.
R
- raw(Type) - Static method in class org.int4.dirk.util.Types
-
Gets the raw type of a Java
Type. - register(Type) - Method in interface org.int4.dirk.api.CandidateRegistry
-
Registers a
Type, and all its derived candidates if any, if all its dependencies can be resolved and it would not cause existing registered types to have ambiguous dependencies as a result of registering the given type. - register(Type) - Method in class org.int4.dirk.core.StandardInjector
- register(Collection<Type>) - Method in interface org.int4.dirk.api.CandidateRegistry
-
Registers the given
Types, and all their derived candidates if any, if all their dependencies can be resolved and it would not cause existing registered types to have ambiguous dependencies as a result of registering the given types. - register(Collection<Type>) - Method in class org.int4.dirk.core.StandardInjector
- registerInstance(Object, Annotation...) - Method in interface org.int4.dirk.api.CandidateRegistry
-
Registers an instance, and all its derived candidates if any, as a singleton if it would not cause existing registered types to have ambiguous dependencies as a result.
- registerInstance(Object, Annotation...) - Method in class org.int4.dirk.core.StandardInjector
- release() - Method in interface org.int4.dirk.spi.scope.CreationalContext.Reference
-
Releases this reference.
- remove(Object) - Method in class org.int4.dirk.core.definition.ExtendedScopeResolver
- 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.
- remove(Type) - Method in interface org.int4.dirk.api.CandidateRegistry
-
Removes the given
Type, and all its derived candidates if any, if doing so would not result maintains all invariants for the remaining registered types. - remove(Type) - Method in class org.int4.dirk.core.StandardInjector
- remove(Collection<Type>) - Method in interface org.int4.dirk.api.CandidateRegistry
-
Removes the given
Types, all their derived candidates if any, if doing so would not result maintains all invariants for the remaining registered types. - remove(Collection<Type>) - Method in class org.int4.dirk.core.StandardInjector
- remove(T) - Method in class org.int4.dirk.core.store.QualifiedTypeStore
-
Removes a type
Tfrom the store. - remove(T[], int) - Static method in class org.int4.dirk.org.apache.commons.lang3.ArrayUtils
-
Removes the element at the specified position from the specified array.
- removeAll(Collection<Injectable<?>>) - Method in class org.int4.dirk.core.store.InjectableStore
-
Removes multiple
Injectables from the store. - removeAll(Collection<T>) - Method in class org.int4.dirk.core.store.QualifiedTypeStore
-
Removes multiple type
Ts from the store. - removeAll(T[], int...) - Static method in class org.int4.dirk.org.apache.commons.lang3.ArrayUtils
-
Removes the elements at the specified positions from the specified array.
- removeInstance(Object, Annotation...) - Method in interface org.int4.dirk.api.CandidateRegistry
-
Removes an instance, and all its derived candidates if any, if doing so would not result in broken dependencies in the remaining registered types.
- removeInstance(Object, Annotation...) - Method in class org.int4.dirk.core.StandardInjector
- ReplaceCamelCaseDisplayNameGenerator - Class in org.int4.dirk.test.util
-
A
DisplayNameGeneratorwhich converts camel case test names to normal text. - ReplaceCamelCaseDisplayNameGenerator() - Constructor for class org.int4.dirk.test.util.ReplaceCamelCaseDisplayNameGenerator
- RequiredDependencyException - Exception in org.int4.dirk.api.definition
-
Thrown when an attempt is made to register or remove a type that would cause a dependency required by another type to be ambiguous or unresolvable (either by providing a second alternative or by not providing one anymore).
- RequiredDependencyException(String) - Constructor for exception org.int4.dirk.api.definition.RequiredDependencyException
-
Constructs a new instance.
- REQUIRES_AT_LEAST_ONE - org.int4.dirk.spi.instantiation.TypeTrait
-
Indicates that at least one matching dependency must be available.
- REQUIRES_AT_MOST_ONE - org.int4.dirk.spi.instantiation.TypeTrait
-
Indicates that at most one matching dependency can be available.
- ResolutionException - Exception in org.int4.dirk.api.instantiation
-
Base class for exceptions that can be thrown during type safe resolution.
- ResolutionException(String) - Constructor for exception org.int4.dirk.api.instantiation.ResolutionException
-
Constructs a new instance.
- ResolutionException(String, Throwable) - Constructor for exception org.int4.dirk.api.instantiation.ResolutionException
-
Constructs a new instance.
- resolve(Key) - Method in class org.int4.dirk.core.store.InjectableStore
- resolve(Key) - Method in class org.int4.dirk.core.store.QualifiedTypeStore
- resolve(Key) - Method in interface org.int4.dirk.core.store.Resolver
-
Look up types
TbyKey. - Resolver<T> - Interface in org.int4.dirk.core.store
-
Implementers provide a way to look up a type
TbyKey. - resolveVariables(Map<TypeVariable<?>, Type>, Type) - Static method in class org.int4.dirk.util.Types
-
Get a type representing
typewith variable assignments resolved.
S
- scan(CandidateRegistry) - Method in class org.int4.dirk.plugins.ComponentScanner
-
Scans for annotated types and adds them to the given
CandidateRegistry. - ScopeConflictException - Exception in org.int4.dirk.api.definition
-
Thrown during registration when a type is determined to dependent on a normal scoped type of a different scope than the type being registered, and the injector is not able or configured to resolve the problem itself (for example, by using a proxy).
- ScopeConflictException(String, Throwable) - Constructor for exception org.int4.dirk.api.definition.ScopeConflictException
-
Constructs a new instance.
- ScopeException - Exception in org.int4.dirk.api.scope
-
Thrown when for scope related problems.
- ScopeException(String) - Constructor for exception org.int4.dirk.api.scope.ScopeException
-
Constructs a new instance.
- ScopeNotActiveException - Exception in org.int4.dirk.api.scope
-
Thrown when a scoped instance is required without the appropriate scope being active.
- ScopeNotActiveException(String) - Constructor for exception org.int4.dirk.api.scope.ScopeNotActiveException
-
Constructs a new instance.
- 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.InstantiationContext
-
Creates an
InstantiationContextbased on this context which further narrows the potential matching instances by requiring additional qualifiers. - select(Class<U>, Annotation...) - Method in interface org.int4.dirk.spi.instantiation.InstantiationContext
-
Creates an
InstantiationContextbased on this context which further narrows the potential matching instances to a subtype ofTand the given additional qualifiers. - select(Type, Annotation...) - Method in interface org.int4.dirk.spi.instantiation.InstantiationContext
-
Creates an
InstantiationContextbased on this context which further narrows the potential matching instances to a subtype ofTand the given additional qualifiers. - SetInjectionTargetExtension<T> - Class in org.int4.dirk.library
-
An
InjectionTargetExtensionforSets. - SetInjectionTargetExtension() - Constructor for class org.int4.dirk.library.SetInjectionTargetExtension
- SimpleScopeStrategy - Class in org.int4.dirk.library
-
An implementation of
ScopeStrategy. - SimpleScopeStrategy(Class<? extends Annotation>, Annotation, Annotation, Annotation) - Constructor for class org.int4.dirk.library.SimpleScopeStrategy
-
Constructs a new instance.
- SingletonScopeResolver - Class in org.int4.dirk.library
-
Scope resolver for singleton scope.
- SingletonScopeResolver(Annotation) - Constructor for class org.int4.dirk.library.SingletonScopeResolver
-
Constructs a new instance.
- StandardInjector - Class in org.int4.dirk.core
-
A standard implementation of
Injectorprovided with the framework. - StandardInjector(Collection<InjectionTargetExtension<?, ?>>, Collection<TypeRegistrationExtension>, List<ScopeResolver>, InjectorStrategy, boolean) - Constructor for class org.int4.dirk.core.StandardInjector
-
Constructs a new instance.
- StyledTextProvider - Class in org.int4.dirk.test.textprovider
- StyledTextProvider() - Constructor for class org.int4.dirk.test.textprovider.StyledTextProvider
- styleText(String) - Method in class org.int4.dirk.test.plugin.TextStyler
T
- TextDatabase - Class in org.int4.dirk.test.beans
- TextDatabase() - Constructor for class org.int4.dirk.test.beans.TextDatabase
- TextProvider - Interface in org.int4.dirk.test.plugin
- TextStyler - Class in org.int4.dirk.test.plugin
- TextStyler() - Constructor for class org.int4.dirk.test.plugin.TextStyler
- TextUppercaser - Class in org.int4.dirk.test.beans
- TextUppercaser() - Constructor for class org.int4.dirk.test.beans.TextUppercaser
- toBoxed(Type) - Static method in class org.int4.dirk.util.Primitives
-
Converts a
Typeif it is primitive to its box, otherwise returns the original type. - toSet() - Method in class org.int4.dirk.core.store.QualifiedTypeStore
-
Returns a set with a copy of all type
Ts that are part of this store. - toSet(Function<Stream<T>, U>) - Method in class org.int4.dirk.core.store.QualifiedTypeStore
-
Applies a function over all type
Ts that are part of this store. - toString() - Method in class org.int4.dirk.core.definition.Key
- toString() - Method in class org.int4.dirk.core.definition.QualifiedType
- toString() - Method in class org.int4.dirk.core.store.QualifiedTypeStore
- toString() - Method in class org.int4.dirk.plugins.Plugin
- TypeReference<T> - Class in org.int4.dirk.util
-
Helper class that can be subclassed to provide full generic type information.
- TypeReference() - Constructor for class org.int4.dirk.util.TypeReference
-
Constructs a new instance.
- TypeRegistrationExtension - Interface in org.int4.dirk.spi.discovery
-
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.discovery
-
Allows registration of newly derived types.
- Types - Class in org.int4.dirk.util
-
Support functions for types, classes and interfaces.
- Types() - Constructor for class org.int4.dirk.util.Types
- TypeTrait - Enum in org.int4.dirk.spi.instantiation
-
Traits of an
InjectionTargetExtension. - TypeUtils - Class in org.int4.dirk.org.apache.commons.lang3.reflect
-
Utility methods focusing on type inspection, particularly with regard to generics.
- TypeUtils() - Constructor for class org.int4.dirk.org.apache.commons.lang3.reflect.TypeUtils
- TypeUtils.WildcardTypeBuilder - Class in org.int4.dirk.org.apache.commons.lang3.reflect
-
WildcardTypebuilder.
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.
- unload(Plugin) - Method in class org.int4.dirk.plugins.PluginManager
-
Attempts to unload the given plugin.
- unrollVariables(Map<TypeVariable<?>, Type>, Type) - Static method in class org.int4.dirk.org.apache.commons.lang3.reflect.TypeUtils
-
Gets a type representing
typewith variable assignments "unrolled." - UnsatisfiedDependencyException - Exception in org.int4.dirk.api.definition
-
Thrown when not all dependencies can be resolved.
- UnsatisfiedDependencyException(String) - Constructor for exception org.int4.dirk.api.definition.UnsatisfiedDependencyException
-
Constructs a new instance.
- UnsatisfiedRequiredDependencyException - Exception in org.int4.dirk.api.definition
-
Thrown when an attempt is made to remove a type that would cause a dependency required by another type to become unresolvable.
- UnsatisfiedRequiredDependencyException(String) - Constructor for exception org.int4.dirk.api.definition.UnsatisfiedRequiredDependencyException
-
Constructs a new instance.
- UnsatisfiedResolutionException - Exception in org.int4.dirk.api.instantiation
-
Thrown when no matching instance was available or could be created.
- UnsatisfiedResolutionException(String) - Constructor for exception org.int4.dirk.api.instantiation.UnsatisfiedResolutionException
-
Constructs a new instance.
- uppercase(String) - Method in class org.int4.dirk.test.beans.TextUppercaser
- UppercaseTextProvider - Class in org.int4.dirk.test.textprovider
- UppercaseTextProvider() - Constructor for class org.int4.dirk.test.textprovider.UppercaseTextProvider
V
- value() - Method in annotation type org.int4.dirk.annotations.Argument
-
Name for factory arguments, which must match the name at the injection site.
- valueOf(String) - Static method in enum org.int4.dirk.spi.instantiation.TypeTrait
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum org.int4.dirk.spi.instantiation.TypeTrait
-
Returns an array containing the constants of this enum type, in the order they are declared.
W
- wildcardExtends(Type...) - Static method in class org.int4.dirk.util.Types
-
Creates a new
WildcardTypewith the given upper bounds. - wildcardType() - Static method in class org.int4.dirk.org.apache.commons.lang3.reflect.TypeUtils
-
Gets a
TypeUtils.WildcardTypeBuilder. - withLowerBounds(Type...) - Method in class org.int4.dirk.org.apache.commons.lang3.reflect.TypeUtils.WildcardTypeBuilder
-
Specify lower bounds of the wildcard type to build.
- withUpperBounds(Type...) - Method in class org.int4.dirk.org.apache.commons.lang3.reflect.TypeUtils.WildcardTypeBuilder
-
Specify upper bounds of the wildcard type to build.
All Classes All Packages