- All Known Implementing Classes:
InterceptorCreatorDefault
Provides the strategy used to determine which annotations cause interceptor creation. Only services that are injection-
activated may qualify for interception.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Abstraction for interceptor processing.static enum
The strategy applied for resolving annotations that trigger interception. -
Method Summary
Modifier and TypeMethodDescriptionApplicable whenInterceptorCreator.Strategy.ALLOW_LISTED
is in use.createInterceptorProcessor
(io.helidon.inject.api.ServiceInfoBasics interceptedService, InterceptorCreator delegateCreator) Returns the reflection based interceptor processor.createInterceptorProcessor
(io.helidon.inject.api.ServiceInfoBasics interceptedService, InterceptorCreator delegateCreator, ProcessingEnvironment processEnv) Returns the annotation based interceptor processor.default boolean
isAllowListed
(TypeName annotationType) Applicable whenInterceptorCreator.Strategy.CUSTOM
is in use.default InterceptorCreator.Strategy
strategy()
Determines the strategy being applied.
-
Method Details
-
strategy
Determines the strategy being applied.- Returns:
- the strategy being applied
-
allowListedAnnotationTypes
Applicable whenInterceptorCreator.Strategy.ALLOW_LISTED
is in use.- Returns:
- the set of type names that should trigger creation
-
isAllowListed
Applicable whenInterceptorCreator.Strategy.CUSTOM
is in use.- Parameters:
annotationType
- the annotation type name- Returns:
- true if the annotation type should trigger interceptor creation
-
createInterceptorProcessor
InterceptorCreator.InterceptorProcessor createInterceptorProcessor(io.helidon.inject.api.ServiceInfoBasics interceptedService, InterceptorCreator delegateCreator) Returns the reflection based interceptor processor.- Parameters:
interceptedService
- the service being intercepteddelegateCreator
- the "real" creator- Returns:
- the processor to use for the given arguments
-
createInterceptorProcessor
InterceptorCreator.InterceptorProcessor createInterceptorProcessor(io.helidon.inject.api.ServiceInfoBasics interceptedService, InterceptorCreator delegateCreator, ProcessingEnvironment processEnv) Returns the annotation based interceptor processor.- Parameters:
interceptedService
- the service being intercepteddelegateCreator
- the "real" creatorprocessEnv
- the processing environment (should be passed if in annotation processor)- Returns:
- the processor to use for the given arguments
-