Class CacheableAnnotationMapper
java.lang.Object
io.micronaut.spring.annotation.AbstractSpringAnnotationMapper
io.micronaut.spring.annotation.cache.CacheableAnnotationMapper
- All Implemented Interfaces:
io.micronaut.core.naming.Named
,io.micronaut.inject.annotation.AnnotationMapper<Annotation>
,io.micronaut.inject.annotation.NamedAnnotationMapper
- Direct Known Subclasses:
CacheEvictAnnotationMapper
,CachePutAnnotationMapper
Maps the Spring cache annotations.
- Since:
- 1.0
- Author:
- graemerocher
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected @NonNull io.micronaut.core.annotation.AnnotationValueBuilder<? extends Annotation>
Builds the target annotation.getName()
protected List<io.micronaut.core.annotation.AnnotationValue<?>>
mapInternal
(io.micronaut.core.annotation.AnnotationValue<Annotation> annotation, io.micronaut.inject.visitor.VisitorContext visitorContext) Internal map implemenation that subclasses should implement.Methods inherited from class io.micronaut.spring.annotation.AbstractSpringAnnotationMapper
map
-
Constructor Details
-
CacheableAnnotationMapper
public CacheableAnnotationMapper()
-
-
Method Details
-
mapInternal
protected List<io.micronaut.core.annotation.AnnotationValue<?>> mapInternal(io.micronaut.core.annotation.AnnotationValue<Annotation> annotation, io.micronaut.inject.visitor.VisitorContext visitorContext) Description copied from class:AbstractSpringAnnotationMapper
Internal map implemenation that subclasses should implement.- Specified by:
mapInternal
in classAbstractSpringAnnotationMapper
- Parameters:
annotation
- The annotationvisitorContext
- The visitor context- Returns:
- A list of annotations
-
getName
-
buildAnnotation
@NonNull protected @NonNull io.micronaut.core.annotation.AnnotationValueBuilder<? extends Annotation> buildAnnotation()Builds the target annotation.- Returns:
- The annotation builder
-