Index

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

A

add(Class) - Method in interface org.apache.cayenne.di.ListBuilder
 
add(T) - Method in interface org.apache.cayenne.di.ListBuilder
 
addAfter(Class, Class) - Method in interface org.apache.cayenne.di.ListBuilder
 
addAfter(T, Class) - Method in interface org.apache.cayenne.di.ListBuilder
 
addAll(Collection) - Method in interface org.apache.cayenne.di.ListBuilder
 
addAllAfter(Collection, Class) - 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) - Method in interface org.apache.cayenne.di.DecoratorBuilder
 
afterScopeEnd() - Method in class org.apache.cayenne.di.spi.DefaultScopeProvider
 

B

before(Class) - Method in interface org.apache.cayenne.di.DecoratorBuilder
 
beforeScopeEnd() - Method in interface org.apache.cayenne.di.ScopeEventListener
Similar to BeforeScopeEnd
BeforeScopeEnd - Annotation Interface in org.apache.cayenne.di
An annotation used by objects that want to receive scope ending events from the DI registry.
bind(Class) - Method in interface org.apache.cayenne.di.Binder
Starts an unnamed binding of a specific interface.
bind(Key) - 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) - Method in interface org.apache.cayenne.di.Binder
Starts a binding of a java.util.List<T> distinguished by its values type.
bindList(Class, 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) - 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, 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, DefaultInjector) - Constructor for class org.apache.cayenne.di.spi.ConstructorInjectingDecoratorProvider
 
createInjector(Collection) - 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) - Method in class org.apache.cayenne.di.spi.DICollectionBuilder
 

D

decorate(Class) - Method in interface org.apache.cayenne.di.Binder
 
decorate(Key) - 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...) - 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) - 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, DefaultInjector) - Constructor for class org.apache.cayenne.di.spi.DICollectionBuilder
 
DIRuntimeException - Exception Class in org.apache.cayenne.di
A runtime exception thrown on DI misconfiguration.
DIRuntimeException() - Constructor for exception class org.apache.cayenne.di.DIRuntimeException
Creates new ConfigurationException without detail message.
DIRuntimeException(String, Object...) - Constructor for exception class 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 class org.apache.cayenne.di.DIRuntimeException
 
DIRuntimeException(Throwable) - Constructor for exception class 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) - 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) - Static method in class org.apache.cayenne.di.Key
Creates a key for a nameless binding of a given type.
get(Class, String) - Static method in class org.apache.cayenne.di.Key
Creates a key for a named binding of a given type.
get(Provider) - 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) - Method in interface org.apache.cayenne.di.Injector
Returns a service instance bound in the container for a specific type.
getInstance(Class) - Method in class org.apache.cayenne.di.spi.DefaultInjector
 
getInstance(Key) - Method in interface org.apache.cayenne.di.Injector
Returns a service instance bound in the container for a specific binding key.
getInstance(Key) - 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) - Static method in class org.apache.cayenne.di.Key
 
getListOf(Class, String) - Static method in class org.apache.cayenne.di.Key
 
getMapOf(Class, Class) - Static method in class org.apache.cayenne.di.Key
 
getMapOf(Class, Class, String) - Static method in class org.apache.cayenne.di.Key
 
getObject() - Method in class org.apache.cayenne.di.spi.ScopeEventBinding
 
getProvider(Class) - Method in interface org.apache.cayenne.di.Injector
 
getProvider(Class) - Method in class org.apache.cayenne.di.spi.DefaultInjector
 
getProvider(Key) - Method in interface org.apache.cayenne.di.Injector
 
getProvider(Key) - 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 Interface 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, Class) - Method in interface org.apache.cayenne.di.ListBuilder
 
insertBefore(Class, Class) - Method in interface org.apache.cayenne.di.ListBuilder
 
insertBefore(T, Class) - 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, 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) - Method in class org.apache.cayenne.di.spi.ModuleLoader
Auto-loads all modules declared on classpath.
load(Class, 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 autoloading mechanism to identify and load modules.
moduleType() - Method in interface org.apache.cayenne.di.spi.ModuleProvider
 

N

newInstance(Class, Class, boolean) - Method in interface org.apache.cayenne.di.AdhocObjectFactory
Returns an instance of "type" that implements "superType", injecting dependencies from the registry into it if requested
newInstance(Class, Class, boolean) - Method in class org.apache.cayenne.di.spi.DefaultAdhocObjectFactory
 
newInstance(Class, 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, String, boolean) - Method in interface org.apache.cayenne.di.AdhocObjectFactory
Returns an instance of "className" that implements "superType", injecting dependencies from the registry into it if requested
newInstance(Class, String, boolean) - 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 a collection of module types this module overrides.

P

postScopeEvent(Class, 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) - Method in interface org.apache.cayenne.di.MapBuilder
 
put(String, T) - Method in interface org.apache.cayenne.di.MapBuilder
 
putAll(Map) - Method in interface org.apache.cayenne.di.MapBuilder
 

R

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

S

scope(Provider) - Method in interface org.apache.cayenne.di.Scope
 
scope(Provider) - 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) - Method in interface org.apache.cayenne.di.BindingBuilder
 
toInstance(T) - Method in interface org.apache.cayenne.di.BindingBuilder
 
toProvider(Class) - Method in interface org.apache.cayenne.di.BindingBuilder
 
toProviderInstance(Provider) - 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() - Element in annotation interface 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 and Interfaces|All Packages|Serialized Form