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
- 
Interface Summary Interface Description CoherenceExtension.InterceptorProvider A provider ofNamedEventInterceptorinstances.ExtractorFactory<A extends Annotation,T,E> A factory that produces instances ofValueExtractorfor a givenAnnotation.FilterFactory<A extends Annotation,T> A factory that produces instances ofFilterfor a givenAnnotation.MapEventTransformerFactory<A extends Annotation,K,V,U> A factory that produces instances ofMapEventTransformerfor a givenAnnotation.SessionInitializer An interface that should be implemented by custom Coherence scoped session configurations in order to enable their discovery and automatic initialization at startup.
- 
Class Summary Class Description AbstractCacheInterceptor Abstract base class for caching CDI interceptors.AlwaysFilter.Literal An annotation literal for theAlwaysFilterannotation.AnnotationInstance A representation of anAnnotationthat can be used for equality tests where methods in theAnnotationannotated withNonbindingare ignored.AnnotationLiteral<T extends Annotation> Supports inline instantiation of annotation type instances.CacheAdd.Literal An annotation literal for theCacheAddannotation.CacheAddInterceptor A CDI interceptor that always invokes target method and then caches invocation result before returning it.CacheGet.Literal An annotation literal for theCacheGetannotation.CacheGetInterceptor A CDI interceptor that returns cached value if present; otherwise it returns and caches result of target method invocation.CachePut.Literal An annotation literal for theCachePutannotation.CachePutInterceptor A CDI interceptor that stores parameter value in the Coherence cache.CacheRemove.Literal An annotation literal for theCacheRemoveannotation.CacheRemoveInterceptor A CDI interceptor that removes value from the cache and invokes target method.CdiEventObserver<E extends Event> An observer of events that wraps a CDIProcessObserverMethod.CdiInjector An implementation ofInjectorthat uses the CDI bean manager to inject dependencies.CdiInterceptorMetadataResolver An implementation ofInterceptorMetadataResolverthat knows how to extract interceptor metadata from a Weld proxy.CdiMapEventObserver<K,V> An implementation of aAnnotatedMapListener.MapEventObserverthat wraps a CDIObserverMethodthat observesMapEvent.CdiMapListenerManager Registers discovered CDI observer-basedMapListeners when the cache is created, and unregisters them when it's destroyed.ChainedExtractor.Extractors.Literal An annotation literal for theChainedExtractor.Extractorsannotation.ChainedExtractor.Literal An annotation literal for theChainedExtractorannotation.CoherenceExtension A Coherence CDIExtensionthat is used on both cluster members and the clients.CoherenceProducer A producer that creates the defaultCoherencebean.ConfigUri.Literal An annotation literal for theConfigUriannotation.ExtractorProducer A CDI bean that producesValueExtractorinstances usingExtractorFactorybeans annotated withExtractorBindingannotations.ExtractorProducer.ChainedExtractorsSupplier A {ExtractorFactorythat producesMultiExtractorcontainingValueExtractorinstances produced from the annotations contained in aChainedExtractor.Extractorsannotation.ExtractorProducer.ChainedExtractorSupplier A {ExtractorFactorythat produces chainedValueExtractorinstances for an array of property or method names.ExtractorProducer.PofExtractorsSupplier A {ExtractorFactorythat producesMultiExtractorcontainingValueExtractorinstances produced from the annotations contained in aPofExtractor.Extractorsannotation.ExtractorProducer.PofExtractorSupplier A {ExtractorFactorythat producesValueExtractorinstances for a given POF index or property path.ExtractorProducer.UniversalExtractorsSupplier A {ExtractorFactorythat producesMultiExtractorcontainingValueExtractorinstances produced from the annotations contained in aPropertyExtractor.Extractorsannotation.ExtractorProducer.UniversalExtractorSupplier A {ExtractorFactorythat producesValueExtractorinstances for a given property or method name.FilterProducer A CDI bean that producesFilterinstances usingFilterFactorybeans annotated withFilterBindingannotations.FilterProducer.AlwaysFilterSupplier AFilterFactorythat producesAlwaysFilterinstances.FilterProducer.WhereFilterSupplier AFilterFactorythat producesFilterinstances from a CohQL where clause.MapEventTransformerProducer A CDI bean that producesMapEventTransformerinstances usingMapEventTransformerFactorybeans annotated withMapEventTransformerBindingannotations.Name.Literal An annotation literal for theNameannotation.NamedCacheProducer NamedTopicProducer PofExtractor.Extractors.Literal An annotation literal for thePofExtractor.Extractorsannotation.PofExtractor.Literal An annotation literal for thePofExtractorannotation.PropertyExtractor.Extractors.Literal An annotation literal for thePropertyExtractor.Extractorsannotation.PropertyExtractor.Literal An annotation literal for thePropertyExtractorannotation.Remote.Literal An annotation literal for theRemoteannotation.Scope.Literal An annotation literal for theScopeannotation.SerializerFormat.Literal An annotation literal for theSerializerFormatannotation.SerializerProducer A CDI producer ofSerializerinstances.SerializerProducer.Builder A builder that buildsSerializerProducerinstances.SessionName.Literal An annotation literal for theSessionNameannotation.SessionProducer A CDI producer forSessioninstances.SubscriberGroup.Literal An annotation literal for theSubscriberGroupannotation.View.Literal An annotation literal for theViewannotation.WhereFilter.Literal An annotation literal for theWhereFilterannotation.
- 
Annotation Types Summary Annotation Type Description AlwaysFilter AFilterBindingannotation representing anAlwaysFilter.CacheAdd Never get the value from cache, get it from method and cache the result.CacheGet Get the value from cache if present, invoke the method and cache the result otherwise.CacheKey Parameters annotated with this annotation are considered part of the key.CachePut Put a value to cache AND call the method.CacheRemove Remove the value from the cache and call the method.CacheValue Marks a parameter as the cache value.ChainedExtractor AExtractorBindingannotation representing aChainedExtractor.ChainedExtractor.Extractors A holder for the repeatableChainedExtractorannotation.ConfigUri A qualifier annotation used to indicate a configuration resource URI.ExtractorBinding Specifies that an annotation type is aValueExtractorbinding type.FilterBinding Specifies that an annotation type is aFilterbinding type.MapEventTransformerBinding Specifies that an annotation type is aMapEventTransformerbinding type.Name A qualifier annotation used when injecting Coherence resource to indicate a specific resource name.PofExtractor AExtractorBindingannotation representing aPofExtractor.PofExtractor.Extractors A holder for the repeatablePofExtractorannotation.PropertyExtractor AExtractorBindingannotation representing aUniversalExtractor.PropertyExtractor.Extractors A holder for the repeatablePropertyExtractorannotation.Remote A qualifier annotation used when injecting Coherence resource to indicate that a resource is remote.Scope A qualifier annotation used when injecting Coherence resource to indicate that those resource should be obtained from a specificConfigurableCacheFactory.SerializerFormat A qualifier annotation used when injecting aSerializerto identify the specificSerializerto inject.SessionName A qualifier annotation used when injecting Coherence resource to indicate a specific Session name.SubscriberGroup A qualifier annotation used when injectingSubscriberto aNamedTopicto indicate the name of the subscriber group that the subscriber should belong to.View A qualifier annotation used when injecting a cache view.WhereFilter AFilterBindingannotation representing aFilterproduced from a CohQL where clause.