A B C D E F G H I O R S T V 
All Classes All Packages

A

addSetterMethod(String, Injectable) - Method in class com.github.alex1304.rdi.config.ServiceDescriptor.Builder
Adds a setter method that is capable of injecting an additional dependency after instantiation.
addSetterMethod(String, Injectable, Class<?>) - Method in class com.github.alex1304.rdi.config.ServiceDescriptor.Builder
Adds a setter method that is capable of injecting an additional dependency after instantiation.

B

build() - Method in class com.github.alex1304.rdi.config.RdiConfig.Builder
Builds the RdiConfig instance with all the service descriptors registered at the moment this method is invoked.
build() - Method in class com.github.alex1304.rdi.config.ServiceDescriptor.Builder
Builds the service descriptor.
builder() - Static method in class com.github.alex1304.rdi.config.RdiConfig
Initializes a new RdiConfig builder.
builder(ServiceReference<?>) - Static method in class com.github.alex1304.rdi.config.ServiceDescriptor
Creates a new builder for a ServiceDescriptor.
Builder() - Constructor for class com.github.alex1304.rdi.config.RdiConfig.Builder
 

C

com.github.alex1304.rdi - package com.github.alex1304.rdi
 
com.github.alex1304.rdi.config - package com.github.alex1304.rdi.config
 
com.github.alex1304.rdi.resolver - package com.github.alex1304.rdi.resolver
 
constructor(Injectable...) - Static method in interface com.github.alex1304.rdi.config.FactoryMethod
Creates a FactoryMethod representing a constructor.
create(RdiConfig) - Static method in interface com.github.alex1304.rdi.RdiServiceContainer
Creates a new RdiServiceContainer.

D

DependencyResolver - Class in com.github.alex1304.rdi.resolver
Helper class to assemble the reactive chains instantiating the services and performing the dependency injection.

E

equals(Object) - Method in class com.github.alex1304.rdi.config.ServiceDescriptor
 
equals(Object) - Method in class com.github.alex1304.rdi.config.SetterMethod
 
equals(Object) - Method in class com.github.alex1304.rdi.ServiceReference
 
externalStaticFactory(Class<?>, String, Class<?>, Injectable...) - Static method in interface com.github.alex1304.rdi.config.FactoryMethod
Creates a FactoryMethod representing a static factory method.

F

FactoryMethod - Interface in com.github.alex1304.rdi.config
Represents a method that can create a new instance of a service.

G

getFactoryMethod() - Method in class com.github.alex1304.rdi.config.ServiceDescriptor
Gets information about the factory method of the service that will be subject to dependency injection.
getInjectableParameter() - Method in class com.github.alex1304.rdi.config.SetterMethod
 
getInjectableParameters() - Method in interface com.github.alex1304.rdi.config.FactoryMethod
 
getReference() - Method in interface com.github.alex1304.rdi.config.Injectable
Gets the reference of this injectable parameter, if it represents a reference to another service.
getService(ServiceReference<S>) - Method in interface com.github.alex1304.rdi.RdiServiceContainer
Gets the service for the given reference.
getServiceClass() - Method in class com.github.alex1304.rdi.ServiceReference
Gets the class of the service that is referred to.
getServiceDescriptors() - Method in class com.github.alex1304.rdi.config.RdiConfig
 
getServiceName() - Method in class com.github.alex1304.rdi.ServiceReference
Gets the name of the service that is referred to.
getServiceReference() - Method in class com.github.alex1304.rdi.config.ServiceDescriptor
Gets the service reference targeted by this descriptor.
getSetterMethods() - Method in class com.github.alex1304.rdi.config.ServiceDescriptor
Gets information about all the setter methods of the service that will be subject to dependency injection.
getType() - Method in interface com.github.alex1304.rdi.config.Injectable
Gets the type of this injectable parameter.
getValue() - Method in interface com.github.alex1304.rdi.config.Injectable
Gets the value of this injectable parameter, if it represents a provided value.

H

hashCode() - Method in class com.github.alex1304.rdi.config.ServiceDescriptor
 
hashCode() - Method in class com.github.alex1304.rdi.config.SetterMethod
 
hashCode() - Method in class com.github.alex1304.rdi.ServiceReference
 
hasService(ServiceReference<?>) - Method in interface com.github.alex1304.rdi.RdiServiceContainer
Checks if this container contains a service with the given reference.

I

Injectable - Interface in com.github.alex1304.rdi.config
Represents an injectable parameter.
invoke(Object) - Method in class com.github.alex1304.rdi.config.SetterMethod
 
invoke(Object...) - Method in interface com.github.alex1304.rdi.config.FactoryMethod
 
invoke(Object, Object) - Method in class com.github.alex1304.rdi.config.SetterMethod
 
isSingleton() - Method in class com.github.alex1304.rdi.config.ServiceDescriptor
Gets whether the service is configured as singleton.

O

of(String, Class<T>) - Static method in class com.github.alex1304.rdi.ServiceReference
Creates a new ServiceReference with the given name and class.
ofType(Class<T>) - Static method in class com.github.alex1304.rdi.ServiceReference
Creates a new ServiceReference with the given class.

R

RdiConfig - Class in com.github.alex1304.rdi.config
Contains all the configuration to create a service container.
RdiConfig.Builder - Class in com.github.alex1304.rdi.config
 
RdiException - Exception in com.github.alex1304.rdi
Thrown when something goes wrong while configuring or using a RDI service container.
RdiException(String) - Constructor for exception com.github.alex1304.rdi.RdiException
 
RdiException(String, Throwable) - Constructor for exception com.github.alex1304.rdi.RdiException
 
RdiServiceContainer - Interface in com.github.alex1304.rdi
Service container that is capable of managing services in a reactive fashion.
ref(ServiceReference<?>) - Static method in interface com.github.alex1304.rdi.config.Injectable
Creates an injectable parameter which represents a reference to another service.
ref(ServiceReference<T>, Class<? super T>) - Static method in interface com.github.alex1304.rdi.config.Injectable
Creates an injectable parameter which represents a reference to another service.
registerService(ServiceDescriptor) - Method in class com.github.alex1304.rdi.config.RdiConfig.Builder
Registers a new ServiceDescriptor containing all the dependency injection metadata for a particular service.
resolve(Set<ServiceDescriptor>) - Static method in class com.github.alex1304.rdi.resolver.DependencyResolver
Resolves the dependency tree described by the given set of service descriptors.

S

ServiceDescriptor - Class in com.github.alex1304.rdi.config
Contains all the metadata on how to instantiate a service and how to inject all the dependencies it needs.
ServiceDescriptor.Builder - Class in com.github.alex1304.rdi.config
 
ServiceReference<T> - Class in com.github.alex1304.rdi
Refers to a specific service.
setFactoryMethod(Function<Class<?>, FactoryMethod>) - Method in class com.github.alex1304.rdi.config.ServiceDescriptor.Builder
Sets the factory method that will instantiate the service, with the potential dependencies to inject.
setSingleton(boolean) - Method in class com.github.alex1304.rdi.config.ServiceDescriptor.Builder
Sets whether to configure the service as singleton.
SetterMethod - Class in com.github.alex1304.rdi.config
 
standalone(ServiceReference<?>) - Static method in class com.github.alex1304.rdi.config.ServiceDescriptor
Convenience method to create a descriptor for a service that does not have any dependencies.
standalone(ServiceReference<?>, boolean) - Static method in class com.github.alex1304.rdi.config.ServiceDescriptor
Convenience method to create a descriptor for a service that does not have any dependencies.
staticFactory(String, Class<?>, Injectable...) - Static method in interface com.github.alex1304.rdi.config.FactoryMethod
Creates a FactoryMethod representing a static factory method.

T

toString() - Method in class com.github.alex1304.rdi.config.ServiceDescriptor
 
toString() - Method in class com.github.alex1304.rdi.config.SetterMethod
 
toString() - Method in class com.github.alex1304.rdi.ServiceReference
 

V

value(boolean) - Static method in interface com.github.alex1304.rdi.config.Injectable
Creates an injectable parameter which represents an already known value.
value(byte) - Static method in interface com.github.alex1304.rdi.config.Injectable
Creates an injectable parameter which represents an already known value.
value(char) - Static method in interface com.github.alex1304.rdi.config.Injectable
Creates an injectable parameter which represents an already known value.
value(double) - Static method in interface com.github.alex1304.rdi.config.Injectable
Creates an injectable parameter which represents an already known value.
value(float) - Static method in interface com.github.alex1304.rdi.config.Injectable
Creates an injectable parameter which represents an already known value.
value(int) - Static method in interface com.github.alex1304.rdi.config.Injectable
Creates an injectable parameter which represents an already known value.
value(long) - Static method in interface com.github.alex1304.rdi.config.Injectable
Creates an injectable parameter which represents an already known value.
value(short) - Static method in interface com.github.alex1304.rdi.config.Injectable
Creates an injectable parameter which represents an already known value.
value(T, Class<? super T>) - Static method in interface com.github.alex1304.rdi.config.Injectable
Creates an injectable parameter which represents an already known value.
A B C D E F G H I O R S T V 
All Classes All Packages