java.lang.Object
io.helidon.inject.tools.AbstractCreator
io.helidon.inject.tools.InterceptorCreatorDefault
- All Implemented Interfaces:
Resettable,InterceptorCreator
@Singleton
public class InterceptorCreatorDefault
extends AbstractCreator
implements InterceptorCreator, Resettable
The default
InterceptorCreator provider in use.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.inject.tools.spi.InterceptorCreator
InterceptorCreator.InterceptorProcessor, InterceptorCreator.Strategy -
Field Summary
Fields inherited from class io.helidon.inject.tools.AbstractCreator
DEFAULT_SOURCE, DEFAULT_TARGET -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.this is a Java ServiceLoader implementation and the constructor should not be used directly -
Method Summary
Modifier and TypeMethodDescriptionApplicable whenInterceptorCreator.Strategy.ALLOW_LISTEDis in use.allowListedAnnotationTypes(Set<TypeName> allowListedAnnotationTypes) Sets the allow-listed annotation types triggering interception creation for the default interceptor creator.createInterceptorProcessor(io.helidon.inject.api.ServiceInfoBasics interceptedService, InterceptorCreator delegateCreator) Returns the reflection based interceptor processor.io.helidon.inject.tools.InterceptorCreatorDefault.AbstractInterceptorProcessorcreateInterceptorProcessor(io.helidon.inject.api.ServiceInfoBasics interceptedService, InterceptorCreator delegateCreator, ProcessingEnvironment processEnv) Returns the annotation based interceptor processor.booleanreset(boolean deep) Resets the state of this object.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.inject.tools.spi.InterceptorCreator
isAllowListed, strategy
-
Constructor Details
-
InterceptorCreatorDefault
Deprecated.this is a Java ServiceLoader implementation and the constructor should not be used directlyService loader based constructor.
-
-
Method Details
-
reset
public boolean reset(boolean deep) Description copied from interface:ResettableResets the state of this object.- Specified by:
resetin interfaceResettable- Parameters:
deep- true to iterate over any contained objects, to reflect the reset into the retained object- Returns:
- returns true if the state was changed
-
allowListedAnnotationTypes
public InterceptorCreatorDefault allowListedAnnotationTypes(Set<TypeName> allowListedAnnotationTypes) Sets the allow-listed annotation types triggering interception creation for the default interceptor creator.- Parameters:
allowListedAnnotationTypes- the allow-listed annotation types- Returns:
- this instance
-
allowListedAnnotationTypes
Description copied from interface:InterceptorCreatorApplicable whenInterceptorCreator.Strategy.ALLOW_LISTEDis in use.- Specified by:
allowListedAnnotationTypesin interfaceInterceptorCreator- Returns:
- the set of type names that should trigger creation
-
createInterceptorProcessor
public io.helidon.inject.tools.InterceptorCreatorDefault.AbstractInterceptorProcessor createInterceptorProcessor(io.helidon.inject.api.ServiceInfoBasics interceptedService, InterceptorCreator delegateCreator, ProcessingEnvironment processEnv) Description copied from interface:InterceptorCreatorReturns the annotation based interceptor processor.- Specified by:
createInterceptorProcessorin interfaceInterceptorCreator- 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
-
createInterceptorProcessor
public InterceptorCreator.InterceptorProcessor createInterceptorProcessor(io.helidon.inject.api.ServiceInfoBasics interceptedService, InterceptorCreator delegateCreator) Description copied from interface:InterceptorCreatorReturns the reflection based interceptor processor.- Specified by:
createInterceptorProcessorin interfaceInterceptorCreator- Parameters:
interceptedService- the service being intercepteddelegateCreator- the "real" creator- Returns:
- the processor to use for the given arguments
-