Package com.oracle.coherence.cdi
package com.oracle.coherence.cdi
Coherence CDI provides support for CDI (Contexts and Dependency Injection)
within Coherence cluster members.
It allows you both to inject Coherence-managed resources, such as `NamedCache` and `Session` instances into CDI managed beans, and to inject CDI beans into Coherence-managed resources, such as event interceptors and cache stores.
In addition, Coherence CDI provides support for automatic injection of transient objects upon deserialization. This allows you to inject CDI managed beans such as services and repositories (to use DDD nomenclature) into transient objects, such as entry processor and data class instances, greatly simplifying implementation of true Domain Driven applications.
- Since:
- 20.06
- Author:
- Aleks Seovic 2019.10.09
-
ClassDescriptionAbstract base class for caching CDI interceptors.A
FilterBinding
annotation representing anAlwaysFilter
.An annotation literal for theAlwaysFilter
annotation.A representation of anAnnotation
that can be used for equality tests where methods in theAnnotation
annotated withNonbinding
are ignored.AnnotationLiteral<T extends Annotation>Supports inline instantiation of annotation type instances.Never get the value from cache, get it from method and cache the result.An annotation literal for theCacheAdd
annotation.A CDI interceptor that always invokes target method and then caches invocation result before returning it.Get the value from cache if present, invoke the method and cache the result otherwise.An annotation literal for theCacheGet
annotation.A CDI interceptor that returns cached value if present; otherwise it returns and caches result of target method invocation.Parameters annotated with this annotation are considered part of the key.Put a value to cache AND call the method.An annotation literal for theCachePut
annotation.A CDI interceptor that stores parameter value in the Coherence cache.Remove the value from the cache and call the method.An annotation literal for theCacheRemove
annotation.A CDI interceptor that removes value from the cache and invokes target method.Marks a parameter as the cache value.CdiEventObserver<E extends Event>An observer of events that wraps a CDIProcessObserverMethod
.An implementation ofInjector
that uses the CDI bean manager to inject dependencies.An implementation ofInterceptorMetadataResolver
that knows how to extract interceptor metadata from a Weld proxy.CdiMapEventObserver<K,V> An implementation of aAnnotatedMapListener.MapEventObserver
that wraps a CDIObserverMethod
that observesMapEvent
.Registers discovered CDI observer-basedMapListener
s when the cache is created, and unregisters them when it's destroyed.AExtractorBinding
annotation representing aChainedExtractor
.A holder for the repeatableChainedExtractor
annotation.An annotation literal for theChainedExtractor.Extractors
annotation.An annotation literal for theChainedExtractor
annotation.A Coherence CDIExtension
that is used on both cluster members and the clients.A provider ofNamedEventInterceptor
instances.A producer that creates the defaultCoherence
bean.A qualifier annotation used to indicate a configuration resource URI.An annotation literal for theConfigUri
annotation.Specifies that an annotation type is aValueExtractor
binding type.A factory that produces instances ofValueExtractor
for a givenAnnotation
.A CDI bean that producesValueExtractor
instances usingExtractorFactory
beans annotated withExtractorBinding
annotations.A {ExtractorFactory
that producesMultiExtractor
containingValueExtractor
instances produced from the annotations contained in aChainedExtractor.Extractors
annotation.A {ExtractorFactory
that produces chainedValueExtractor
instances for an array of property or method names.A {ExtractorFactory
that producesMultiExtractor
containingValueExtractor
instances produced from the annotations contained in aPofExtractor.Extractors
annotation.A {ExtractorFactory
that producesValueExtractor
instances for a given POF index or property path.A {ExtractorFactory
that producesMultiExtractor
containingValueExtractor
instances produced from the annotations contained in aPropertyExtractor.Extractors
annotation.A {ExtractorFactory
that producesValueExtractor
instances for a given property or method name.Specifies that an annotation type is aFilter
binding type.A factory that produces instances ofFilter
for a givenAnnotation
.A CDI bean that producesFilter
instances usingFilterFactory
beans annotated withFilterBinding
annotations.AFilterFactory
that producesAlwaysFilter
instances.AFilterFactory
that producesFilter
instances from a CohQL where clause.Specifies that an annotation type is aMapEventTransformer
binding type.A factory that produces instances ofMapEventTransformer
for a givenAnnotation
.A CDI bean that producesMapEventTransformer
instances usingMapEventTransformerFactory
beans annotated withMapEventTransformerBinding
annotations.A qualifier annotation used when injecting Coherence resource to indicate a specific resource name.An annotation literal for theName
annotation.AExtractorBinding
annotation representing aPofExtractor
.A holder for the repeatablePofExtractor
annotation.An annotation literal for thePofExtractor.Extractors
annotation.An annotation literal for thePofExtractor
annotation.AExtractorBinding
annotation representing aUniversalExtractor
.A holder for the repeatablePropertyExtractor
annotation.An annotation literal for thePropertyExtractor.Extractors
annotation.An annotation literal for thePropertyExtractor
annotation.A qualifier annotation used when injecting Coherence resource to indicate that a resource is remote.An annotation literal for theRemote
annotation.A qualifier annotation used when injecting Coherence resource to indicate that those resource should be obtained from a specificConfigurableCacheFactory
.An annotation literal for theScope
annotation.A qualifier annotation used when injecting aSerializer
to identify the specificSerializer
to inject.An annotation literal for theSerializerFormat
annotation.A CDI producer ofSerializer
instances.A builder that buildsSerializerProducer
instances.An interface that should be implemented by custom Coherence scoped session configurations in order to enable their discovery and automatic initialization at startup.A qualifier annotation used when injecting Coherence resource to indicate a specific Session name.An annotation literal for theSessionName
annotation.A CDI producer forSession
instances.A qualifier annotation used when injectingSubscriber
to aNamedTopic
to indicate the name of the subscriber group that the subscriber should belong to.An annotation literal for theSubscriberGroup
annotation.A qualifier annotation used when injecting a cache view.An annotation literal for theView
annotation.AFilterBinding
annotation representing aFilter
produced from a CohQL where clause.An annotation literal for theWhereFilter
annotation.