A B C E F G H I K M N P R S T V Y 
All Classes All Packages

A

add(Class<?>, Class<?>...) - Method in class io.github.suppierk.inject.Injector.Builder
Adds classes to the Injector.
add(Object, Object...) - Method in class io.github.suppierk.inject.Injector.Builder
Adds plain objects to the Injector.
annotations() - Method in class io.github.suppierk.inject.Key
 

B

blueBold(String) - Static method in class io.github.suppierk.utils.ConsoleConstants
 

C

classKey - Variable in class io.github.suppierk.inject.graph.ProvidesNew
 
close() - Method in class io.github.suppierk.inject.graph.ConstructsNew
close() - Method in class io.github.suppierk.inject.graph.ConstructsSingleton
close() - Method in class io.github.suppierk.inject.graph.ProvidesNew
close() - Method in class io.github.suppierk.inject.graph.ProvidesSingleton
close() - Method in class io.github.suppierk.inject.graph.RefersTo
close() - Method in class io.github.suppierk.inject.graph.Value
close() - Method in class io.github.suppierk.inject.Injector
ConsoleConstants - Class in io.github.suppierk.utils
Some console constants.
constructor - Variable in class io.github.suppierk.inject.graph.ConstructsNew
 
ConstructsNew<T> - Class in io.github.suppierk.inject.graph
Defines a node which instantiates a new class instance by calling its constructor.
ConstructsNew(InjectorReference, Constructor<T>, List<ParameterInformation>, List<FieldInformation>) - Constructor for class io.github.suppierk.inject.graph.ConstructsNew
Default constructor.
ConstructsSingleton<T> - Class in io.github.suppierk.inject.graph
Defines a node which calls ConstructsNew logic to instantiate the value and stores instantiated value inside Memoized for later access.
ConstructsSingleton(InjectorReference, Constructor<T>, List<ParameterInformation>, List<FieldInformation>) - Constructor for class io.github.suppierk.inject.graph.ConstructsSingleton
Default constructor.
copy() - Method in class io.github.suppierk.inject.Injector
 
copy(InjectorReference) - Method in class io.github.suppierk.inject.graph.ConstructsNew
Allows creating a copy of the current node for the new Injector instance.
copy(InjectorReference) - Method in class io.github.suppierk.inject.graph.ConstructsSingleton
Allows creating a copy of the current node for the new Injector instance.
copy(InjectorReference) - Method in class io.github.suppierk.inject.graph.Node
Allows creating a copy of the current node for the new Injector instance.
copy(InjectorReference) - Method in class io.github.suppierk.inject.graph.ProvidesNew
Allows creating a copy of the current node for the new Injector instance.
copy(InjectorReference) - Method in class io.github.suppierk.inject.graph.ProvidesSingleton
Allows creating a copy of the current node for the new Injector instance.
copy(InjectorReference) - Method in class io.github.suppierk.inject.graph.RefersTo
Allows creating a copy of the current node for the new Injector instance.
copy(InjectorReference) - Method in class io.github.suppierk.inject.graph.Value
Allows creating a copy of the current node for the new Injector instance.
createArguments() - Method in class io.github.suppierk.inject.graph.ReflectionNode
Create an array of arguments for instantiation method invocation.
createOnCloseConsumer(Class<T>) - Static method in class io.github.suppierk.inject.graph.Node
Identify default behavior to clean up resources for the given class.
cyanBold(String) - Static method in class io.github.suppierk.utils.ConsoleConstants
 

E

EMPTY - Static variable in class io.github.suppierk.utils.ConsoleConstants
 
emptyConsumer() - Static method in class io.github.suppierk.inject.graph.Node
Similar to Optional.empty() but for Consumer.
equals(Object) - Method in class io.github.suppierk.inject.FieldInformation
 
equals(Object) - Method in class io.github.suppierk.inject.graph.ConstructsNew
Constructor equality leverages parameters, which we already check in superclass.
equals(Object) - Method in class io.github.suppierk.inject.graph.ConstructsSingleton
Constructor equality leverages parameters, which we already check in superclass.
equals(Object) - Method in class io.github.suppierk.inject.graph.Node
equals(Object) - Method in class io.github.suppierk.inject.graph.ProvidesNew
equals(Object) - Method in class io.github.suppierk.inject.graph.ProvidesSingleton
equals(Object) - Method in class io.github.suppierk.inject.graph.RefersTo
equals(Object) - Method in class io.github.suppierk.inject.graph.ReflectionNode
equals(Object) - Method in class io.github.suppierk.inject.graph.Value
equals(Object) - Method in class io.github.suppierk.inject.Injector
equals(Object) - Method in class io.github.suppierk.inject.Key
 
equals(Object) - Method in class io.github.suppierk.inject.ParameterInformation
 

F

FieldInformation - Class in io.github.suppierk.inject
Defines base information about specific class field.
FieldInformation(Field, Key<?>, Class<?>) - Constructor for class io.github.suppierk.inject.FieldInformation
 
fieldsInformation() - Method in class io.github.suppierk.inject.graph.ReflectionNode
 

G

get() - Method in class io.github.suppierk.inject.graph.ConstructsNew
get() - Method in class io.github.suppierk.inject.graph.ConstructsSingleton
get() - Method in class io.github.suppierk.inject.graph.ProvidesNew
get() - Method in class io.github.suppierk.inject.graph.ProvidesSingleton
get() - Method in class io.github.suppierk.inject.graph.RefersTo
get() - Method in class io.github.suppierk.inject.graph.Value
get() - Method in class io.github.suppierk.utils.Memoized
Double-checked locking with Lock instead of synchronized to facilitate its usage on newer JVM versions affected by thread pinning problem.
get(Class<T>) - Method in class io.github.suppierk.inject.Injector
Retrieve fully initialized instance of the class.
getClassKey() - Method in class io.github.suppierk.inject.graph.ProvidesNew
 
getField() - Method in class io.github.suppierk.inject.FieldInformation
 
getNode(Key<T>) - Method in class io.github.suppierk.inject.InjectorReference
Retrieves dependency graph node by delegating a call to Injector.getNode(Key).
getParameter() - Method in class io.github.suppierk.inject.ParameterInformation
 
getQualifierKey() - Method in class io.github.suppierk.inject.FieldInformation
 
getQualifierKey() - Method in class io.github.suppierk.inject.ParameterInformation
 
getWrapper() - Method in class io.github.suppierk.inject.FieldInformation
 
getWrapper() - Method in class io.github.suppierk.inject.ParameterInformation
 

H

hashCode() - Method in class io.github.suppierk.inject.FieldInformation
 
hashCode() - Method in class io.github.suppierk.inject.graph.ConstructsNew
Constructor hash code leverages constant class name, not parameters - we use parameters in superclass.
hashCode() - Method in class io.github.suppierk.inject.graph.ConstructsSingleton
Constructor hash code leverages constant class name, not parameters - we use parameters in superclass.
hashCode() - Method in class io.github.suppierk.inject.graph.Node
hashCode() - Method in class io.github.suppierk.inject.graph.ProvidesNew
hashCode() - Method in class io.github.suppierk.inject.graph.ProvidesSingleton
hashCode() - Method in class io.github.suppierk.inject.graph.RefersTo
hashCode() - Method in class io.github.suppierk.inject.graph.ReflectionNode
hashCode() - Method in class io.github.suppierk.inject.graph.Value
hashCode() - Method in class io.github.suppierk.inject.Injector
hashCode() - Method in class io.github.suppierk.inject.Key
 
hashCode() - Method in class io.github.suppierk.inject.ParameterInformation
 

I

ifPresent(Consumer<T>) - Method in class io.github.suppierk.utils.Memoized
If a value is evaluated, performs the given action with the value, otherwise does nothing.
ifPresentOrElse(Consumer<? super T>, Runnable) - Method in class io.github.suppierk.utils.Memoized
If a value is evaluated, performs the given action with the value, otherwise performs the given empty-based action.
indent(int) - Static method in class io.github.suppierk.utils.ConsoleConstants
 
injectFields(T) - Method in class io.github.suppierk.inject.graph.ReflectionNode
Perform in-place field injection into an object instance.
injector() - Static method in class io.github.suppierk.inject.Injector
 
Injector - Class in io.github.suppierk.inject
Main dependency injection functionality entry point.
Injector.Builder - Class in io.github.suppierk.inject
Contains additional logic to help construct Injector
Injector.CopyBuilder - Class in io.github.suppierk.inject
Contains additional logic to help modify Injector
injectorReference() - Method in class io.github.suppierk.inject.graph.Node
 
InjectorReference - Class in io.github.suppierk.inject
Value class which holds a reference to a particular instance of Injector.
InjectorReference() - Constructor for class io.github.suppierk.inject.InjectorReference
Default constructor.
io.github.suppierk.inject - module io.github.suppierk.inject
 
io.github.suppierk.inject - package io.github.suppierk.inject
 
io.github.suppierk.inject.graph - package io.github.suppierk.inject.graph
 
io.github.suppierk.utils - package io.github.suppierk.utils
 
isEmpty() - Method in class io.github.suppierk.utils.Memoized
If a value is not evaluated, returns true, otherwise false.
isNotSupportedWrapperClass(Class<?>) - Static method in class io.github.suppierk.inject.graph.ReflectionNode
Checks if current Class is either Provider or Supplier.
isPresent() - Method in class io.github.suppierk.utils.Memoized
If a value is evaluated, returns true, otherwise false.

K

Key<T> - Class in io.github.suppierk.inject
Defines a map key for the qualified object lookup.
Key(Class<T>, Set<Annotation>) - Constructor for class io.github.suppierk.inject.Key
 

M

Memoized<T> - Class in io.github.suppierk.utils
Provides simple implementation of the lazily computed value which gets evaluated once.
memoizedProvider(Provider<T>) - Static method in class io.github.suppierk.utils.Memoized
Static factory method for Memoized class.
memoizedSupplier(Supplier<T>) - Static method in class io.github.suppierk.utils.Memoized
Static factory method for Memoized class.
method - Variable in class io.github.suppierk.inject.graph.ProvidesNew
 
methodReturnClass - Variable in class io.github.suppierk.inject.graph.ProvidesNew
 

N

Node<T> - Class in io.github.suppierk.inject.graph
Defines a baseline structure for the dependency graph node.
Node(InjectorReference, Set<Key<?>>) - Constructor for class io.github.suppierk.inject.graph.Node
Default constructor.

P

ParameterInformation - Class in io.github.suppierk.inject
Defines base information about specific class method parameter.
ParameterInformation(Parameter, Key<?>, Class<?>) - Constructor for class io.github.suppierk.inject.ParameterInformation
 
parametersInformation() - Method in class io.github.suppierk.inject.graph.ReflectionNode
 
parentKeys() - Method in class io.github.suppierk.inject.graph.Node
 
Provides - Annotation Type in io.github.suppierk.inject
Identifies methods which provide object instances.
ProvidesNew<T> - Class in io.github.suppierk.inject.graph
Defines a node which instantiates a new class instance by calling a method of the existing instance retrieved from ConstructsNew.
ProvidesNew(InjectorReference, Key<?>, Method, Class<T>, List<ParameterInformation>, List<FieldInformation>) - Constructor for class io.github.suppierk.inject.graph.ProvidesNew
Default constructor.
ProvidesSingleton<T> - Class in io.github.suppierk.inject.graph
Defines a node which calls ProvidesNew logic to instantiate the value and stores instantiated value inside Memoized for later access.
ProvidesSingleton(InjectorReference, Key<?>, Method, Class<T>, List<ParameterInformation>, List<FieldInformation>) - Constructor for class io.github.suppierk.inject.graph.ProvidesSingleton
Default constructor.

R

RefersTo<T> - Class in io.github.suppierk.inject.graph
Defines a node used for performing replacement operations.
RefersTo(InjectorReference, Key<?>) - Constructor for class io.github.suppierk.inject.graph.RefersTo
Default constructor.
ReflectionNode<T> - Class in io.github.suppierk.inject.graph
Defines a baseline structure for the dependency graph nodes which can produce new object instances.
ReflectionNode(InjectorReference, List<ParameterInformation>, List<FieldInformation>, Key<?>...) - Constructor for class io.github.suppierk.inject.graph.ReflectionNode
Default constructor.
replace(F, T) - Method in class io.github.suppierk.inject.Injector.CopyBuilder
Replaces existing plain object instance onto another plain object instance.
replace(Class<F>, Class<T>) - Method in class io.github.suppierk.inject.Injector.CopyBuilder
Replaces existing class onto another class.
requiredParentKeys() - Method in class io.github.suppierk.inject.graph.Node
 
requiredParentKeys() - Method in class io.github.suppierk.inject.graph.ReflectionNode
 

S

set(Injector) - Method in class io.github.suppierk.inject.InjectorReference
Sets the reference to the injector using atomic CAS.
stream() - Method in class io.github.suppierk.utils.Memoized
If a value is evaluated, returns a sequential Stream containing only that value, otherwise returns an empty Stream.

T

toString() - Method in class io.github.suppierk.inject.FieldInformation
 
toString() - Method in class io.github.suppierk.inject.graph.ConstructsNew
toString() - Method in class io.github.suppierk.inject.graph.ProvidesNew
toString() - Method in class io.github.suppierk.inject.graph.RefersTo
toString() - Method in class io.github.suppierk.inject.graph.Value
toString() - Method in class io.github.suppierk.inject.Injector
toString() - Method in class io.github.suppierk.inject.Key
 
toString() - Method in class io.github.suppierk.inject.ParameterInformation
 
toString() - Method in class io.github.suppierk.utils.Memoized
toYamlString(boolean, int) - Method in class io.github.suppierk.inject.Key
Renders particular Key as YAML for human-readable option to inspect dependencies.
toYamlString(int) - Method in class io.github.suppierk.inject.graph.ConstructsNew
Renders particular Node as YAML for human-readable option to inspect dependencies.
toYamlString(int) - Method in class io.github.suppierk.inject.graph.ConstructsSingleton
Renders particular Node as YAML for human-readable option to inspect dependencies.
toYamlString(int) - Method in class io.github.suppierk.inject.graph.Node
Renders particular Node as YAML for human-readable option to inspect dependencies.
toYamlString(int) - Method in class io.github.suppierk.inject.graph.ProvidesNew
Renders particular Node as YAML for human-readable option to inspect dependencies.
toYamlString(int) - Method in class io.github.suppierk.inject.graph.ProvidesSingleton
Renders particular Node as YAML for human-readable option to inspect dependencies.
toYamlString(int) - Method in class io.github.suppierk.inject.graph.RefersTo
Renders particular Node as YAML for human-readable option to inspect dependencies.
toYamlString(int) - Method in class io.github.suppierk.inject.graph.Value
Renders particular Node as YAML for human-readable option to inspect dependencies.
toYamlString(int, boolean) - Method in class io.github.suppierk.inject.graph.ConstructsNew
Shared logic to create YAML structure for the current Node.
toYamlString(int, boolean) - Method in class io.github.suppierk.inject.graph.ProvidesNew
Shared logic to create YAML structure for the current Node.
type() - Method in class io.github.suppierk.inject.Key
 

V

Value<T> - Class in io.github.suppierk.inject.graph
Defines dependency node with already instantiated value.
Value(InjectorReference, T) - Constructor for class io.github.suppierk.inject.graph.Value
Default constructor.

Y

YAML_EMPTY_ARRAY - Static variable in class io.github.suppierk.utils.ConsoleConstants
 
YAML_ITEM - Static variable in class io.github.suppierk.utils.ConsoleConstants
 
yellow(String) - Static method in class io.github.suppierk.utils.ConsoleConstants
 
A B C E F G H I K M N P R S T V Y 
All Classes All Packages