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 TypeMethodDescriptionvoidAfter Properties Set.booleanIs 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:HateoasHalProviderAfter Properties Set.- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Overrides:
afterPropertiesSetin classHateoasHalProvider
-
isHalEnabled
public boolean isHalEnabled()Description copied from class:HateoasHalProviderIs hal enabled boolean.- Overrides:
isHalEnabledin classHateoasHalProvider- Returns:
- the boolean
-