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 aContextRequest
like through an API or other integration and hydrates all of the data within theContextRequest
- Author:
- Phillip Verheyden (phillipuniverse)
- See Also:
DefaultContextRequestHydrator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default int
getOrder()
ContextRequest
hydrate(ContextRequest dehydrated)
Hydrates aContextRequest
with all of the hierarchical tenant data necessary to drive a discriminated request.
-
-
-
Method Detail
-
hydrate
ContextRequest hydrate(ContextRequest dehydrated)
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
-
-