Interface ContextRequestHydrator
-
- All Superinterfaces:
org.springframework.core.Ordered
- All Known Implementing Classes:
DefaultContextRequestHydrator
public interface ContextRequestHydrator extends org.springframework.core.OrderedLooks up partial data passed in through aContextRequestlike 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 intgetOrder()ContextRequesthydrate(ContextRequest dehydrated)Hydrates aContextRequestwith all of the hierarchical tenant data necessary to drive a discriminated request.
-
-
-
Method Detail
-
hydrate
ContextRequest hydrate(ContextRequest dehydrated)
Hydrates aContextRequestwith 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:
getOrderin interfaceorg.springframework.core.Ordered
-
-