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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Creates a newSwaggerProviderobject 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 theSwaggerProviderobject.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 theSwaggerProviderobject.messages()Returns the messages in this builder if it's been specified.Specifies the messages to use for theSwaggerProviderobject.type(Class<? extends SwaggerProvider> value) Specifies a subclass ofSwaggerProviderto 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 theSwaggerProviderobject.
- 
Constructor Details- 
BuilderConstructor.- Parameters:
- beanStore- The bean store to use for creating beans.
 
 
- 
- 
Method Details- 
buildCreates a newSwaggerProviderobject from this builder.Instantiates an instance of the implementation classor elseBasicSwaggerProviderif implementation class was not specified.- Returns:
- A new SwaggerProviderobject.
 
- 
varResolverReturns the var resolver in this builder if it's been specified.- Returns:
- The var resolver.
 
- 
jsonSchemaGeneratorReturns the JSON schema generator in this builder if it's been specified.- Returns:
- The JSON schema generator.
 
- 
messagesReturns the messages in this builder if it's been specified.- Returns:
- The messages.
 
- 
fileFinderReturns the file finder in this builder if it's been specified.- Returns:
- The file finder.
 
- 
getDefaultTypeSpecifies the default implementation class if not specified viatype(Class).- Returns:
- The default implementation class if not specified via type(Class).
 
- 
typeSpecifies a subclass ofSwaggerProviderto create when thebuild()method is called.- Parameters:
- value- The new value for this setting.
- Returns:
- This object.
 
- 
varResolverSpecifies the variable resolver to use for theSwaggerProviderobject.- Parameters:
- value- The new value for this setting.
- Returns:
- This object.
 
- 
jsonSchemaGeneratorSpecifies the JSON-schema generator to use for theSwaggerProviderobject.- Parameters:
- value- The new value for this setting.
- Returns:
- This object.
 
- 
messagesSpecifies the messages to use for theSwaggerProviderobject.- Parameters:
- value- The new value for this setting.
- Returns:
- This object.
 
- 
fileFinderSpecifies the file-finder to use for theSwaggerProviderobject.- Parameters:
- value- The new value for this setting.
- Returns:
- This object.
 
- 
implSpecifies an already-instantiated bean for thebuild()method too return.- Parameters:
- value- The new value for this setting.
- Returns:
- This object.
 
 
-