Package io.quarkus.arc.processor
Class ContextConfigurator
- java.lang.Object
-
- io.quarkus.arc.processor.ContextConfigurator
-
public final class ContextConfigurator extends Object
Custom context configurator.- Author:
- Martin Kouba
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContextConfiguratorcontextClass(Class<? extends InjectableContext> contextClazz)ContextConfiguratorcreator(Class<? extends ContextCreator> creatorClazz)ContextConfiguratorcreator(Function<io.quarkus.gizmo.MethodCreator,io.quarkus.gizmo.ResultHandle> creator)voiddone()ContextConfiguratornormal()By default, the context is considered normal if the scope annotion is annotated withNormalScope.ContextConfiguratornormal(boolean value)By default, the context is considered normal if the scope annotion is annotated withNormalScope.ContextConfiguratorparam(String name, boolean value)ContextConfiguratorparam(String name, double value)ContextConfiguratorparam(String name, int value)ContextConfiguratorparam(String name, long value)ContextConfiguratorparam(String name, Class<?> value)ContextConfiguratorparam(String name, String value)
-
-
-
Method Detail
-
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 withNormalScope.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 withNormalScope.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 InjectableContext> contextClazz)
-
creator
public ContextConfigurator creator(Class<? extends ContextCreator> creatorClazz)
-
creator
public ContextConfigurator creator(Function<io.quarkus.gizmo.MethodCreator,io.quarkus.gizmo.ResultHandle> creator)
-
done
public void done()
-
-