Class ContextConfigurator

java.lang.Object
io.quarkus.arc.processor.ContextConfigurator

public final class ContextConfigurator extends Object
Custom context configurator.
Author:
Martin Kouba
  • Method Details

    • param

      public ContextConfigurator param(String name, Class<?> value)
    • param

      public ContextConfigurator param(String name, int value)
    • param

      public ContextConfigurator param(String name, long value)
    • param

      public ContextConfigurator param(String name, double value)
    • param

      public ContextConfigurator param(String name, String value)
    • param

      public ContextConfigurator param(String name, boolean value)
    • normal

      public ContextConfigurator normal()
      By default, the context is considered normal if the scope annotion is annotated with NormalScope.

      It is possible to change this behavior. However, in such case the registrator is responsible for the correct implementation of InjectableContext.isNormal().

      Returns:
      self
    • normal

      public ContextConfigurator normal(boolean value)
      By default, the context is considered normal if the scope annotion is annotated with NormalScope.

      It is possible to change this behavior. However, in such case the registrator is responsible for the correct implementation of InjectableContext.isNormal().

      Returns:
      self
    • contextClass

      public ContextConfigurator contextClass(Class<? extends io.quarkus.arc.InjectableContext> contextClazz)
    • creator

      public ContextConfigurator creator(Class<? extends io.quarkus.arc.ContextCreator> creatorClazz)
    • creator

      public ContextConfigurator creator(Function<io.quarkus.gizmo.MethodCreator,io.quarkus.gizmo.ResultHandle> creator)
    • done

      public void done()