Class OpenApiProvider.Builder
java.lang.Object
org.apache.juneau.rest.server.openapi.OpenApiProvider.Builder
- Enclosing interface:
- OpenApiProvider
Builder class for
OpenApiProvider instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates a newOpenApiProviderobject from this builder.Returns the file finder in this builder if it's been specified.fileFinder(Supplier<FileFinder> value) Specifies the file-finder to use for theOpenApiProviderobject.protected Class<? extends OpenApiProvider>Specifies the default implementation class if not specified viatype(Class).impl(OpenApiProvider value) Specifies an already-instantiated bean for thebuild()method to return.Returns the JSON schema generator in this builder if it's been specified.Specifies the JSON-schema generator to use for theOpenApiProviderobject.messages()Returns the messages in this builder if it's been specified.Specifies the messages to use for theOpenApiProviderobject.type(Class<? extends OpenApiProvider> value) Specifies a subclass ofOpenApiProviderto create when thebuild()method is called.Returns the var resolver in this builder if it's been specified.varResolver(Supplier<VarResolver> value) Specifies the variable resolver to use for theOpenApiProviderobject.
-
Constructor Details
-
Builder
Constructor.- Parameters:
beanStore- The bean store to use for creating beans.
-
-
Method Details
-
build
Creates a newOpenApiProviderobject from this builder.Instantiates an instance of the
implementation classor elseBasicOpenApiProviderif implementation class was not specified.- Returns:
- A new
OpenApiProviderobject.
-
fileFinder
Returns the file finder in this builder if it's been specified.- Returns:
- The file finder.
-
fileFinder
Specifies the file-finder to use for theOpenApiProviderobject.- Parameters:
value- The new value for this setting.- Returns:
- This object.
-
impl
Specifies an already-instantiated bean for thebuild()method to return. -
jsonSchemaGenerator
Returns the JSON schema generator in this builder if it's been specified.- Returns:
- The JSON schema generator.
-
jsonSchemaGenerator
Specifies the JSON-schema generator to use for theOpenApiProviderobject.- Parameters:
value- The new value for this setting.- Returns:
- This object.
-
messages
Returns the messages in this builder if it's been specified.- Returns:
- The messages.
-
messages
Specifies the messages to use for theOpenApiProviderobject.- Parameters:
value- The new value for this setting.- Returns:
- This object.
-
type
Specifies a subclass ofOpenApiProviderto create when thebuild()method is called.- Parameters:
value- The new value for this setting.
Can benull (defaults toBasicOpenApiProvider).- Returns:
- This object.
-
varResolver
Returns the var resolver in this builder if it's been specified.- Returns:
- The var resolver.
-
varResolver
Specifies the variable resolver to use for theOpenApiProviderobject.- Parameters:
value- The new value for this setting.- Returns:
- This object.
-
getDefaultType
Specifies the default implementation class if not specified viatype(Class).- Returns:
- The default implementation class if not specified via
type(Class).
-