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 Type
    Method
    Description
    default int
     
    hydrate(ContextRequest dehydrated)
    Hydrates a ContextRequest with all of the hierarchical tenant data necessary to drive a discriminated request.
  • Method Details

    • hydrate

      ContextRequest hydrate(ContextRequest dehydrated)
      Hydrates a ContextRequest with all of the hierarchical tenant data necessary to drive a discriminated request. For instance, if ContextRequest.getApplicationId() ()} is non-empty, this will attempt to initialize ContextRequest.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 interface org.springframework.core.Ordered