Package org.springdoc.core.providers
Class DataRestHalProvider
java.lang.Object
org.springdoc.core.providers.HateoasHalProvider
org.springdoc.core.providers.DataRestHalProvider
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
public class DataRestHalProvider
extends HateoasHalProvider
implements org.springframework.beans.factory.InitializingBean
The type Data rest hal provider.
- Author:
- bnasslahsen
-
Field Summary
Fields inherited from class org.springdoc.core.providers.HateoasHalProvider
objectMapperProvider
-
Constructor Summary
ConstructorsConstructorDescriptionDataRestHalProvider
(Optional<org.springframework.data.rest.core.config.RepositoryRestConfiguration> repositoryRestConfigurationOptional, Optional<org.springframework.boot.hateoas.autoconfigure.HateoasProperties> hateoasPropertiesOptional, ObjectMapperProvider objectMapperProvider) Instantiates a new Data rest hal provider. -
Method Summary
Modifier and TypeMethodDescriptionvoid
After Properties Set.boolean
Is hal enabled boolean.
-
Constructor Details
-
DataRestHalProvider
public DataRestHalProvider(Optional<org.springframework.data.rest.core.config.RepositoryRestConfiguration> repositoryRestConfigurationOptional, Optional<org.springframework.boot.hateoas.autoconfigure.HateoasProperties> hateoasPropertiesOptional, ObjectMapperProvider objectMapperProvider) Instantiates a new Data rest hal provider.- Parameters:
repositoryRestConfigurationOptional
- the repository rest configuration optionalhateoasPropertiesOptional
- the hateoas properties optionalobjectMapperProvider
- the object mapper provider
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()Description copied from class:HateoasHalProvider
After Properties Set.- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Overrides:
afterPropertiesSet
in classHateoasHalProvider
-
isHalEnabled
public boolean isHalEnabled()Description copied from class:HateoasHalProvider
Is hal enabled boolean.- Overrides:
isHalEnabled
in classHateoasHalProvider
- Returns:
- the boolean
-