Class InterceptorCreatorDefault

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.
  • Constructor Details

    • InterceptorCreatorDefault

      @Deprecated public InterceptorCreatorDefault()
      Deprecated.
      this is a Java ServiceLoader implementation and the constructor should not be used directly
      Service loader based constructor.
  • Method Details

    • reset

      public boolean reset(boolean deep)
      Description copied from interface: Resettable
      Resets the state of this object.
      Specified by:
      reset in interface Resettable
      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

      public Set<TypeName> allowListedAnnotationTypes()
      Description copied from interface: InterceptorCreator
      Applicable when InterceptorCreator.Strategy.ALLOW_LISTED is in use.
      Specified by:
      allowListedAnnotationTypes in interface InterceptorCreator
      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: InterceptorCreator
      Returns the annotation based interceptor processor.
      Specified by:
      createInterceptorProcessor in interface InterceptorCreator
      Parameters:
      interceptedService - the service being intercepted
      delegateCreator - the "real" creator
      processEnv - 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: InterceptorCreator
      Returns the reflection based interceptor processor.
      Specified by:
      createInterceptorProcessor in interface InterceptorCreator
      Parameters:
      interceptedService - the service being intercepted
      delegateCreator - the "real" creator
      Returns:
      the processor to use for the given arguments