Module io.helidon.service.registry
Package io.helidon.service.registry
Class InterceptionContext.BuilderBase<BUILDER extends InterceptionContext.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends InterceptionContext>
java.lang.Object
io.helidon.service.registry.InterceptionContext.BuilderBase<BUILDER,PROTOTYPE>
- Type Parameters:
BUILDER
- type of the builder extending this abstract builderPROTOTYPE
- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER,
PROTOTYPE>
- Direct Known Subclasses:
InterceptionContext.Builder
- Enclosing interface:
InterceptionContext
public abstract static class InterceptionContext.BuilderBase<BUILDER extends InterceptionContext.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends InterceptionContext>
extends Object
implements Prototype.Builder<BUILDER,PROTOTYPE>
Fluent API builder base for
InterceptionContext
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
Generated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTypeAnnotations
(List<? extends Annotation> typeAnnotations) Annotations on the enclosing type.Clear existing value of this property.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 void
Handles 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 void
Validates required properties.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.helidon.builder.api.Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
Update this builder from an existing prototype instance. This method disables automatic service discovery.- Parameters:
prototype
- existing prototype to update this builder from- Returns:
- updated builder instance
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder
- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
clearServiceInstance
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
serviceInstance
The service instance being intercepted. This always returns the underlying instance.- Parameters:
serviceInstance
- instance being intercepted, or empty optional if the intercepted method is not done on an instance (i.e. a constructor interception)- Returns:
- updated builder instance
- See Also:
-
serviceInfo
The service being intercepted.- Parameters:
serviceInfo
- the service being intercepted- Returns:
- updated builder instance
- See Also:
-
typeAnnotations
Annotations on the enclosing type.- Parameters:
typeAnnotations
- the annotations on the enclosing type- Returns:
- updated builder instance
- See Also:
-
addTypeAnnotations
Annotations on the enclosing type.- Parameters:
typeAnnotations
- the annotations on the enclosing type- Returns:
- updated builder instance
- See Also:
-
elementInfo
The element info represents the method, field, or the constructor being invoked.- Parameters:
elementInfo
- the element info of element being intercepted- Returns:
- updated builder instance
- See Also:
-
elementInfo
The element info represents the method, field, or the constructor being invoked.- Parameters:
consumer
- consumer of builder for the element info of element being intercepted- Returns:
- updated builder instance
- See Also:
-
elementInfo
The element info represents the method, field, or the constructor being invoked.- Parameters:
supplier
- supplier of the element info of element being intercepted- Returns:
- updated builder instance
- See Also:
-
serviceInstance
The service instance being intercepted. This always returns the underlying instance.- Returns:
- the service instance
-
serviceInfo
The service being intercepted.- Returns:
- the service info
-
typeAnnotations
Annotations on the enclosing type.- Returns:
- the type annotations
-
elementInfo
The element info represents the method, field, or the constructor being invoked.- Returns:
- the element info
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-