- 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 interfaceAbstraction for interceptor processing.static enumThe strategy applied for resolving annotations that trigger interception. -
Method Summary
Modifier and TypeMethodDescriptionApplicable whenInterceptorCreator.Strategy.ALLOW_LISTEDis 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 booleanisAllowListed(TypeName annotationType) Applicable whenInterceptorCreator.Strategy.CUSTOMis in use.default InterceptorCreator.Strategystrategy()Determines the strategy being applied.
-
Method Details
-
strategy
Determines the strategy being applied.- Returns:
- the strategy being applied
-
allowListedAnnotationTypes
Applicable whenInterceptorCreator.Strategy.ALLOW_LISTEDis in use.- Returns:
- the set of type names that should trigger creation
-
isAllowListed
Applicable whenInterceptorCreator.Strategy.CUSTOMis 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
-