A B C D E F G H I K L M N O P R S T V W 
All Classes All Packages

A

add(Class<? extends T>) - Method in interface org.apache.cayenne.di.ListBuilder
 
add(T) - Method in interface org.apache.cayenne.di.ListBuilder
 
addAfter(Class<? extends T>, Class<? extends T>) - Method in interface org.apache.cayenne.di.ListBuilder
 
addAfter(T, Class<? extends T>) - Method in interface org.apache.cayenne.di.ListBuilder
 
addAll(Collection<T>) - Method in interface org.apache.cayenne.di.ListBuilder
 
addAllAfter(Collection<T>, Class<? extends T>) - Method in interface org.apache.cayenne.di.ListBuilder
 
addScopeEventListener(Object) - Method in class org.apache.cayenne.di.spi.DefaultScope
Registers annotated methods of an arbitrary object for this scope lifecycle events.
AdhocObjectFactory - Interface in org.apache.cayenne.di
Creates objects for user-provided String class names, injecting dependencies into them.
after(Class<? extends T>) - Method in interface org.apache.cayenne.di.DecoratorBuilder
 
afterScopeEnd() - Method in class org.apache.cayenne.di.spi.DefaultScopeProvider
 

B

before(Class<? extends T>) - Method in interface org.apache.cayenne.di.DecoratorBuilder
 
beforeScopeEnd() - Method in interface org.apache.cayenne.di.ScopeEventListener
Similar to BeforeScopeEnd
BeforeScopeEnd - Annotation Type in org.apache.cayenne.di
An annotation used by objects that want to receive scope ending events from the DI registry.
bind(Class<T>) - Method in interface org.apache.cayenne.di.Binder
Starts an unnamed binding of a specific interface.
bind(Key<T>) - Method in interface org.apache.cayenne.di.Binder
Starts a binding of a specific interface based on a provided binding key.
Binder - Interface in org.apache.cayenne.di
An object passed to a Module by the DI container during initialization, that provides the API for the module to bind its services to the container.
BindingBuilder<T> - Interface in org.apache.cayenne.di
A binding builder that helps with fluent binding creation.
bindingKey - Variable in class org.apache.cayenne.di.spi.DICollectionBuilder
 
bindingName - Variable in class org.apache.cayenne.di.Key
 
bindList(Class<T>) - Method in interface org.apache.cayenne.di.Binder
Starts a binding of a java.util.List<T> distinguished by its values type.
bindList(Class<T>, String) - Method in interface org.apache.cayenne.di.Binder
Starts a binding of a java.util.List<T> distinguished by its values type and binding name.
bindMap(Class<T>) - Method in interface org.apache.cayenne.di.Binder
Starts a binding of a java.util.Map<String, T> distinguished by its values type.
bindMap(Class<T>, String) - Method in interface org.apache.cayenne.di.Binder
Starts a binding of a java.util.Map<String, T> distinguished by its values type and binding name.

C

classLoaderManager - Variable in class org.apache.cayenne.di.spi.DefaultAdhocObjectFactory
 
ClassLoaderManager - Interface in org.apache.cayenne.di
Maps ClassLoaders to resources.
configure(Binder) - Method in interface org.apache.cayenne.di.Module
 
ConstructorInjectingDecoratorProvider<T> - Class in org.apache.cayenne.di.spi
 
ConstructorInjectingDecoratorProvider(Class<? extends T>, DefaultInjector) - Constructor for class org.apache.cayenne.di.spi.ConstructorInjectingDecoratorProvider
 
createInjector(Collection<Module>) - Static method in class org.apache.cayenne.di.DIBootstrap
Creates and returns an injector instance working with the set of provided modules.
createInjector(Module...) - Static method in class org.apache.cayenne.di.DIBootstrap
Creates and returns an injector instance working with the set of provided modules.
createInstanceProvider(E) - Method in class org.apache.cayenne.di.spi.DICollectionBuilder
 
createTypeProvider(Class<SubT>) - Method in class org.apache.cayenne.di.spi.DICollectionBuilder
 

D

decorate(Class<T>) - Method in interface org.apache.cayenne.di.Binder
 
decorate(Key<T>) - Method in interface org.apache.cayenne.di.Binder
 
DecoratorBuilder<T> - Interface in org.apache.cayenne.di
 
DefaultAdhocObjectFactory - Class in org.apache.cayenne.di.spi
A default implementation of AdhocObjectFactory that creates objects using default no-arg constructor and injects dependencies into annotated fields.
DefaultAdhocObjectFactory(Injector, ClassLoaderManager) - Constructor for class org.apache.cayenne.di.spi.DefaultAdhocObjectFactory
 
DefaultClassLoaderManager - Class in org.apache.cayenne.di.spi
DefaultClassLoaderManager() - Constructor for class org.apache.cayenne.di.spi.DefaultClassLoaderManager
 
DefaultInjector - Class in org.apache.cayenne.di.spi
A default Cayenne implementations of a DI injector.
DefaultInjector(Module...) - Constructor for class org.apache.cayenne.di.spi.DefaultInjector
 
DefaultScope - Class in org.apache.cayenne.di.spi
An implementation of a DI scopes with support scope events.
DefaultScope(Class<? extends Annotation>...) - Constructor for class org.apache.cayenne.di.spi.DefaultScope
 
DefaultScopeProvider<T> - Class in org.apache.cayenne.di.spi
A provider that provides scoping for other providers.
DefaultScopeProvider(DefaultScope, Provider<T>) - Constructor for class org.apache.cayenne.di.spi.DefaultScopeProvider
 
DIBootstrap - Class in org.apache.cayenne.di
A class that bootstraps the Cayenne DI container.
DIBootstrap() - Constructor for class org.apache.cayenne.di.DIBootstrap
 
DICollectionBuilder<K,​E> - Class in org.apache.cayenne.di.spi
A superclass of DI List and Map builders.
DICollectionBuilder(Key<K>, DefaultInjector) - Constructor for class org.apache.cayenne.di.spi.DICollectionBuilder
 
DIRuntimeException - Exception in org.apache.cayenne.di
A runtime exception thrown on DI misconfiguration.
DIRuntimeException() - Constructor for exception org.apache.cayenne.di.DIRuntimeException
Creates new ConfigurationException without detail message.
DIRuntimeException(String, Object...) - Constructor for exception org.apache.cayenne.di.DIRuntimeException
Constructs an exception with the specified message with an optional list of message formatting arguments.
DIRuntimeException(String, Throwable, Object...) - Constructor for exception org.apache.cayenne.di.DIRuntimeException
 
DIRuntimeException(Throwable) - Constructor for exception org.apache.cayenne.di.DIRuntimeException
Constructs an exception wrapping another exception thrown elsewhere.

E

equals(Object) - Method in class org.apache.cayenne.di.Key
 
eventTypes - Variable in class org.apache.cayenne.di.spi.DefaultScope
 

F

findOrCreateBinding(Class<SubT>) - Method in class org.apache.cayenne.di.spi.DICollectionBuilder
 

G

get() - Method in interface org.apache.cayenne.di.Provider
 
get() - Method in class org.apache.cayenne.di.spi.DefaultScopeProvider
 
get(Class<T>) - Static method in class org.apache.cayenne.di.Key
Creates a key for a nameless binding of a given type.
get(Class<T>, String) - Static method in class org.apache.cayenne.di.Key
Creates a key for a named binding of a given type.
get(Provider<T>) - Method in class org.apache.cayenne.di.spi.ConstructorInjectingDecoratorProvider
 
getBindingName() - Method in class org.apache.cayenne.di.Key
Returns an optional name of the binding used to distinguish multiple bindings of the same object type.
getClassLoader(String) - Method in interface org.apache.cayenne.di.ClassLoaderManager
Returns a ClassLoader appropriate for loading a given resource.
getClassLoader(String) - Method in class org.apache.cayenne.di.spi.DefaultClassLoaderManager
 
getInstance(Class<T>) - Method in interface org.apache.cayenne.di.Injector
Returns a service instance bound in the container for a specific type.
getInstance(Class<T>) - Method in class org.apache.cayenne.di.spi.DefaultInjector
 
getInstance(Key<T>) - Method in interface org.apache.cayenne.di.Injector
Returns a service instance bound in the container for a specific binding key.
getInstance(Key<T>) - Method in class org.apache.cayenne.di.spi.DefaultInjector
 
getJavaClass(String) - Method in interface org.apache.cayenne.di.AdhocObjectFactory
Returns a Java class loaded using ClassLoader returned from ClassLoaderManager.getClassLoader(String) for a given class name.
getJavaClass(String) - Method in class org.apache.cayenne.di.spi.DefaultAdhocObjectFactory
 
getListOf(Class<T>) - Static method in class org.apache.cayenne.di.Key
 
getListOf(Class<T>, String) - Static method in class org.apache.cayenne.di.Key
 
getMapOf(Class<K>, Class<V>) - Static method in class org.apache.cayenne.di.Key
 
getMapOf(Class<K>, Class<V>, String) - Static method in class org.apache.cayenne.di.Key
 
getObject() - Method in class org.apache.cayenne.di.spi.ScopeEventBinding
 
getProvider(Class<T>) - Method in interface org.apache.cayenne.di.Injector
 
getProvider(Class<T>) - Method in class org.apache.cayenne.di.spi.DefaultInjector
 
getProvider(Key<T>) - Method in interface org.apache.cayenne.di.Injector
 
getProvider(Key<T>) - Method in class org.apache.cayenne.di.spi.DefaultInjector
 
getType() - Method in class org.apache.cayenne.di.Key
 

H

hashCode() - Method in class org.apache.cayenne.di.Key
 

I

in(Scope) - Method in interface org.apache.cayenne.di.BindingBuilder
Sets the scope of a bound instance.
in(Scope) - Method in interface org.apache.cayenne.di.ListBuilder
 
in(Scope) - Method in interface org.apache.cayenne.di.MapBuilder
 
in(Scope) - Method in class org.apache.cayenne.di.spi.DICollectionBuilder
 
Inject - Annotation Type in org.apache.cayenne.di
 
injectMembers(Object) - Method in interface org.apache.cayenne.di.Injector
Performs field injection on a given object, ignoring constructor injection.
injectMembers(Object) - Method in class org.apache.cayenne.di.spi.DefaultInjector
 
injector - Variable in class org.apache.cayenne.di.spi.DefaultAdhocObjectFactory
 
injector - Variable in class org.apache.cayenne.di.spi.DICollectionBuilder
 
Injector - Interface in org.apache.cayenne.di
A facade to the Cayenne DI container.
insertAllBefore(Collection<T>, Class<? extends T>) - Method in interface org.apache.cayenne.di.ListBuilder
 
insertBefore(Class<? extends T>, Class<? extends T>) - Method in interface org.apache.cayenne.di.ListBuilder
 
insertBefore(T, Class<? extends T>) - Method in interface org.apache.cayenne.di.ListBuilder
 
inSingletonScope() - Method in interface org.apache.cayenne.di.BindingBuilder
Sets the scope of a bound instance to singleton.

K

Key<T> - Class in org.apache.cayenne.di
An object that encapsulates a key used to store and lookup DI bindings.
Key(TypeLiteral<T>, String) - Constructor for class org.apache.cayenne.di.Key
 

L

ListBuilder<T> - Interface in org.apache.cayenne.di
A binding builder for list configurations.
listeners - Variable in class org.apache.cayenne.di.spi.DefaultScope
 
load(Class<? extends ModuleProvider>) - Method in class org.apache.cayenne.di.spi.ModuleLoader
Auto-loads all modules declared on classpath.
load(Class<? extends ModuleProvider>, ClassLoader) - Method in class org.apache.cayenne.di.spi.ModuleLoader
Auto-loads all modules declared on classpath.

M

MapBuilder<T> - Interface in org.apache.cayenne.di
A binding builder for map configurations.
module() - Method in interface org.apache.cayenne.di.spi.ModuleProvider
 
Module - Interface in org.apache.cayenne.di
Represents a unit of configuration of the Cayenne DI container.
ModuleLoader - Class in org.apache.cayenne.di.spi
Auto-loads DI modules using ServiceLoader.
ModuleLoader() - Constructor for class org.apache.cayenne.di.spi.ModuleLoader
 
ModuleProvider - Interface in org.apache.cayenne.di.spi
Provider of modules used by module auto-loading mechanism to identify and load modules.
moduleType() - Method in interface org.apache.cayenne.di.spi.ModuleProvider
 

N

newInstance(Class<? super T>, String) - Method in interface org.apache.cayenne.di.AdhocObjectFactory
Returns an instance of "className" that implements "superType", injecting dependencies from the registry into it.
newInstance(Class<? super T>, String) - Method in class org.apache.cayenne.di.spi.DefaultAdhocObjectFactory
 

O

onScopeEvent(Object...) - Method in class org.apache.cayenne.di.spi.ScopeEventBinding
 
org.apache.cayenne.di - package org.apache.cayenne.di
 
org.apache.cayenne.di.spi - package org.apache.cayenne.di.spi
 
overrides() - Method in interface org.apache.cayenne.di.spi.ModuleProvider
Returns an array of module types this module overrides.

P

postScopeEvent(Class<? extends Annotation>, Object...) - Method in class org.apache.cayenne.di.spi.DefaultScope
Posts a scope event to all registered listeners.
Provider<T> - Interface in org.apache.cayenne.di
A DI object factory interface.
put(String, Class<? extends T>) - Method in interface org.apache.cayenne.di.MapBuilder
 
put(String, T) - Method in interface org.apache.cayenne.di.MapBuilder
 
putAll(Map<String, T>) - Method in interface org.apache.cayenne.di.MapBuilder
 

R

removeScopeEventListener(Object) - Method in class org.apache.cayenne.di.spi.DefaultScope
 

S

scope(Provider<T>) - Method in interface org.apache.cayenne.di.Scope
 
scope(Provider<T>) - Method in class org.apache.cayenne.di.spi.DefaultScope
 
Scope - Interface in org.apache.cayenne.di
Defines the scope of the instances created by the DI container.
ScopeEventBinding - Class in org.apache.cayenne.di.spi
A class that wraps an annotated method call of an object, passing it DI scope events.
ScopeEventBinding(Object, Method) - Constructor for class org.apache.cayenne.di.spi.ScopeEventBinding
 
ScopeEventListener - Interface in org.apache.cayenne.di
This interface duplicates default reflection based mechanism for receiving DI events.
shutdown() - Method in interface org.apache.cayenne.di.Injector
A lifecycle method that let's the injector's services to clean up their state and release resources.
shutdown() - Method in class org.apache.cayenne.di.spi.DefaultInjector
 
shutdown() - Method in class org.apache.cayenne.di.spi.DefaultScope
Shuts down this scope, posting BeforeScopeEnd and AfterScopeEnd events.

T

to(Class<? extends T>) - Method in interface org.apache.cayenne.di.BindingBuilder
 
toInstance(T) - Method in interface org.apache.cayenne.di.BindingBuilder
 
toProvider(Class<? extends Provider<? extends T>>) - Method in interface org.apache.cayenne.di.BindingBuilder
 
toProviderInstance(Provider<? extends T>) - Method in interface org.apache.cayenne.di.BindingBuilder
 
toString() - Method in class org.apache.cayenne.di.Key
 
typeLiteral - Variable in class org.apache.cayenne.di.Key
 

V

value() - Method in annotation type org.apache.cayenne.di.Inject
An optional name of the dependency for injecting dependency types that have multiple bindings in the container.

W

withoutScope() - Method in interface org.apache.cayenne.di.BindingBuilder
Sets the scope of a bound instance to "no scope".
withoutScope() - Method in interface org.apache.cayenne.di.ListBuilder
 
withoutScope() - Method in interface org.apache.cayenne.di.MapBuilder
 
withoutScope() - Method in class org.apache.cayenne.di.spi.DICollectionBuilder
 
A B C D E F G H I K L M N O P R S T V W 
All Classes All Packages