Class InterceptionContext.Builder
java.lang.Object
io.helidon.service.registry.InterceptionContext.BuilderBase<InterceptionContext.Builder, InterceptionContext>
io.helidon.service.registry.InterceptionContext.Builder
- All Implemented Interfaces:
Prototype.Builder<InterceptionContext.Builder, InterceptionContext>, Builder<InterceptionContext.Builder, InterceptionContext>, Supplier<InterceptionContext>
- Enclosing interface:
InterceptionContext
public static class InterceptionContext.Builder
extends InterceptionContext.BuilderBase<InterceptionContext.Builder, InterceptionContext>
implements Builder<InterceptionContext.Builder, InterceptionContext>
Fluent API builder for
InterceptionContext.-
Nested Class Summary
Nested classes/interfaces inherited from class InterceptionContext.BuilderBase
InterceptionContext.BuilderBase.InterceptionContextImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class InterceptionContext.BuilderBase
addTypeAnnotations, clearServiceInstance, clearTypeAnnotations, elementInfo, elementInfo, elementInfo, elementInfo, from, from, preBuildPrototype, serviceInfo, serviceInfo, serviceInstance, serviceInstance, toString, typeAnnotations, typeAnnotations, validatePrototypeModifier and TypeMethodDescriptionaddTypeAnnotations(List<? extends Annotation> typeAnnotations) Annotations on the enclosing type.Clear existing value of serviceInstance.Clear all typeAnnotations.The element info represents the method, field, or the constructor being invoked.elementInfo(TypedElementInfo elementInfo) The element info represents the method, field, or the constructor being invoked.elementInfo(Consumer<TypedElementInfo.Builder> consumer) The element info represents the method, field, or the constructor being invoked.elementInfo(Supplier<? extends TypedElementInfo> supplier) The element info represents the method, field, or the constructor being invoked.from(InterceptionContext prototype) Update this builder from an existing prototype instance.from(InterceptionContext.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.protected voidHandles providers and decorators.The service being intercepted.serviceInfo(ServiceInfo serviceInfo) The service being intercepted.The service instance being intercepted.serviceInstance(Object serviceInstance) The service instance being intercepted.toString()Annotations on the enclosing type.typeAnnotations(List<? extends Annotation> typeAnnotations) Annotations on the enclosing type.protected voidValidates required properties.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault InterceptionContextget()default InterceptionContext.Builderidentity()Instance of this builder as the correct type.default InterceptionContext.Builderupdate(Consumer<InterceptionContext.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault InterceptionContext.Builderself()Instance of this builder as the correct type.
-
Method Details
-
buildPrototype
Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildPrototypein interfacePrototype.Builder<InterceptionContext.Builder, InterceptionContext>- Returns:
- an instance of the setup object created from this builder
-
build
Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildin interfaceBuilder<InterceptionContext.Builder, InterceptionContext>- Returns:
- instance of the built type
-