Interface ContextRequestHydrator
- All Superinterfaces:
org.springframework.core.Ordered
- All Known Implementing Classes:
DefaultContextRequestHydrator
public interface ContextRequestHydrator
extends org.springframework.core.Ordered
Looks up partial data passed in through a
ContextRequest
like through an API or other
integration and hydrates all of the data within the ContextRequest
- Author:
- Phillip Verheyden (phillipuniverse)
- See Also:
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Method Summary
Modifier and TypeMethodDescriptiondefault int
getOrder()
hydrate
(ContextRequest dehydrated) Hydrates aContextRequest
with all of the hierarchical tenant data necessary to drive a discriminated request.
-
Method Details
-
hydrate
Hydrates aContextRequest
with all of the hierarchical tenant data necessary to drive a discriminated request. For instance, ifContextRequest.getApplicationId()
()} is non-empty, this will attempt to initializeContextRequest.setApplication(Application)
from the data store, overwriting any previously-set value.- Parameters:
dehydrated
- a context request that does not have full data initialized on it- Returns:
- a fully-hydrated ContextRequest assuming that the hydration parameters were non-null
-
getOrder
default int getOrder()- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
-