Package io.helidon.common.configurable
Class ResourceConfig.BuilderBase<BUILDER extends ResourceConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends ResourceConfig>
java.lang.Object
io.helidon.common.configurable.ResourceConfig.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> ConfigBuilderSupport.ConfiguredBuilder<BUILDER,,PROTOTYPE> ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
- Direct Known Subclasses:
ResourceConfig.Builder
- Enclosing interface:
ResourceConfig
public abstract static class ResourceConfig.BuilderBase<BUILDER extends ResourceConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends ResourceConfig>
extends Object
implements ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
Fluent API builder base for
ResourceConfig.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClear existing value of content.Clear existing value of contentPlain.Clear existing value of path.Clear existing value of proxy.Clear existing value of resourcePath.clearUri()Clear existing value of uri.config()Configuration used to configure this instance.Deprecated.Update builder from configuration (node of this type).content()Binary content of the resource (base64 encoded).Binary content of the resource (base64 encoded).Plain content of the resource (text).contentPlain(String contentPlain) Plain content of the resource (text).Description of this resource when configured through plain text or binary.description(String description) Description of this resource when configured through plain text or binary.from(ResourceConfig prototype) Update this builder from an existing prototype instance.from(ResourceConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.path()Resource is located on filesystem.Resource is located on filesystem.protected voidHandles providers and decorators.proxy()Proxy to use when using uri.Proxy to use when using uri.Resource is located on classpath.resourcePath(String resourcePath) Resource is located on classpath.toString()uri()Resource is available on aURI.Resource is available on aURI.protected voidValidates required properties.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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
-
config
Deprecated.Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
configin interfaceConfigBuilderSupport.ConfiguredBuilder<BUILDER extends ResourceConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ResourceConfig> - Parameters:
config- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
config
Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
configin interfaceConfigBuilderSupport.ConfiguredBuilder<BUILDER extends ResourceConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ResourceConfig> - Parameters:
config- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
clearResourcePath
Clear existing value of resourcePath.- Returns:
- updated builder instance
- See Also:
-
resourcePath
Resource is located on classpath.- Parameters:
resourcePath- classpath location of the resource- Returns:
- updated builder instance
- See Also:
-
clearPath
Clear existing value of path.- Returns:
- updated builder instance
- See Also:
-
path
Resource is located on filesystem.- Parameters:
path- path of the resource- Returns:
- updated builder instance
- See Also:
-
clearContentPlain
Clear existing value of contentPlain.- Returns:
- updated builder instance
- See Also:
-
contentPlain
Plain content of the resource (text).- Parameters:
contentPlain- plain content- Returns:
- updated builder instance
- See Also:
-
clearContent
Clear existing value of content.- Returns:
- updated builder instance
- See Also:
-
content
Binary content of the resource (base64 encoded).- Parameters:
content- binary content- Returns:
- updated builder instance
- See Also:
-
clearUri
Clear existing value of uri.- Returns:
- updated builder instance
- See Also:
-
uri
Resource is available on aURI.- Parameters:
uri- of the resource- Returns:
- updated builder instance
- See Also:
-
clearProxy
Clear existing value of proxy.- Returns:
- updated builder instance
- See Also:
-
proxy
Proxy to use when using uri.- Parameters:
proxy- proxy- Returns:
- updated builder instance
- See Also:
-
description
Description of this resource when configured through plain text or binary.- Parameters:
description- description- Returns:
- updated builder instance
- See Also:
-
resourcePath
Resource is located on classpath.- Returns:
- classpath location of the resource
-
path
Resource is located on filesystem.- Returns:
- path of the resource
-
contentPlain
Plain content of the resource (text).- Returns:
- plain content
-
content
Binary content of the resource (base64 encoded).- Returns:
- binary content
-
uri
Resource is available on aURI.- Returns:
- of the resource
- See Also:
-
proxy
Proxy to use when using uri.- Returns:
- proxy
-
description
Description of this resource when configured through plain text or binary.- Returns:
- description
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties. -
config
Configuration used to configure this instance.- Returns:
- config instance
-
config(io.helidon.config.Config)