Class ApplicationConfiguration
java.lang.Object
com.markvarga21.studentmanager.config.ApplicationConfiguration
Configuration class for setting up the application's beans.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The header name used by Azure's Face API for accessing its services. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.cache.CacheManager
cacheManager
(org.springframework.data.redis.connection.RedisConnectionFactory redisConnectionFactory) A bean created for caching the data.com.azure.ai.formrecognizer.documentanalysis.DocumentAnalysisClient
A bean for creating a client for the Azure's Form Recognizer service.com.google.gson.Gson
A bean created for deserializing user JSON strings into POJO.org.springframework.web.client.RestTemplate
A bean created for talking with the APIs, like Azure's Face API.org.springframework.mail.javamail.JavaMailSender
A bean created for sending emails.com.networknt.schema.JsonSchema
A bean created for validating JSON data.io.swagger.v3.oas.models.OpenAPI
openAPI()
This method is used to create anOpenAPI
bean.
-
Field Details
-
AZURE_API_KEY_HEADER
The header name used by Azure's Face API for accessing its services.- See Also:
-
-
Constructor Details
-
ApplicationConfiguration
public ApplicationConfiguration()
-
-
Method Details
-
getDocumentanalysisClient
@Bean public com.azure.ai.formrecognizer.documentanalysis.DocumentAnalysisClient getDocumentanalysisClient()A bean for creating a client for the Azure's Form Recognizer service.- Returns:
- The built
DocumentAnalysisClient
object.
-
getGsonLocalDateDeserializer
@Bean public com.google.gson.Gson getGsonLocalDateDeserializer()A bean created for deserializing user JSON strings into POJO.- Returns:
- The built
Gson
object.
-
getRestTemplate
@Bean public org.springframework.web.client.RestTemplate getRestTemplate()A bean created for talking with the APIs, like Azure's Face API.- Returns:
- The created bean.
-
cacheManager
@Bean public org.springframework.cache.CacheManager cacheManager(org.springframework.data.redis.connection.RedisConnectionFactory redisConnectionFactory) A bean created for caching the data.- Parameters:
redisConnectionFactory
- The connection factory for Redis.- Returns:
- The created bean.
-
javaMailSender
@Bean public org.springframework.mail.javamail.JavaMailSender javaMailSender()A bean created for sending emails.- Returns:
- The configured bean.
-
jsonSchema
@Bean public com.networknt.schema.JsonSchema jsonSchema()A bean created for validating JSON data.- Returns:
- The JSON schema.
-
openAPI
@Bean public io.swagger.v3.oas.models.OpenAPI openAPI()This method is used to create anOpenAPI
bean.- Returns:
- The
OpenAPI
object.
-