Package org.apache.juneau.rest.swagger
Class SwaggerProvider.Builder
java.lang.Object
org.apache.juneau.rest.swagger.SwaggerProvider.Builder
- Enclosing interface:
SwaggerProvider
Builder class.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates a newSwaggerProvider
object 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 theSwaggerProvider
object.protected Class<? extends SwaggerProvider>
Specifies the default implementation class if not specified viatype(Class)
.impl
(SwaggerProvider value) Specifies an already-instantiated bean for thebuild()
method too return.Returns the JSON schema generator in this builder if it's been specified.Specifies the JSON-schema generator to use for theSwaggerProvider
object.messages()
Returns the messages in this builder if it's been specified.Specifies the messages to use for theSwaggerProvider
object.type
(Class<? extends SwaggerProvider> value) Specifies a subclass ofSwaggerProvider
to 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 theSwaggerProvider
object.
-
Constructor Details
-
Builder
Constructor.- Parameters:
beanStore
- The bean store to use for creating beans.
-
-
Method Details
-
build
Creates a newSwaggerProvider
object from this builder.Instantiates an instance of the
implementation class
or elseBasicSwaggerProvider
if implementation class was not specified.- Returns:
- A new
SwaggerProvider
object.
-
varResolver
Returns the var resolver in this builder if it's been specified.- Returns:
- The var resolver.
-
jsonSchemaGenerator
Returns the JSON schema generator in this builder if it's been specified.- Returns:
- The JSON schema generator.
-
messages
Returns the messages in this builder if it's been specified.- Returns:
- The messages.
-
fileFinder
Returns the file finder in this builder if it's been specified.- Returns:
- The file finder.
-
getDefaultType
Specifies the default implementation class if not specified viatype(Class)
.- Returns:
- The default implementation class if not specified via
type(Class)
.
-
type
Specifies a subclass ofSwaggerProvider
to create when thebuild()
method is called.- Parameters:
value
- The new value for this setting.- Returns:
- This object.
-
varResolver
Specifies the variable resolver to use for theSwaggerProvider
object.- Parameters:
value
- The new value for this setting.- Returns:
- This object.
-
jsonSchemaGenerator
Specifies the JSON-schema generator to use for theSwaggerProvider
object.- Parameters:
value
- The new value for this setting.- Returns:
- This object.
-
messages
Specifies the messages to use for theSwaggerProvider
object.- Parameters:
value
- The new value for this setting.- Returns:
- This object.
-
fileFinder
Specifies the file-finder to use for theSwaggerProvider
object.- Parameters:
value
- The new value for this setting.- Returns:
- This object.
-
impl
Specifies an already-instantiated bean for thebuild()
method too return.- Parameters:
value
- The new value for this setting.- Returns:
- This object.
-