Interface ContextAwareServiceResolver.ResolveAllResult<S extends ContextAwareService>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      @NotNull java.lang.String getCombinedKey()
      Gets a combined key that represents the path filter sets of all affected context-aware services that matched for the given resource and a timestamp of the service registration for this service interface changed last.
      @NotNull java.util.stream.Stream<S> getServices()
      Gets all matching services
    • Method Detail

      • getServices

        @NotNull
        @NotNull java.util.stream.Stream<S> getServices()
        Gets all matching services
        Returns:
        Context-Aware services
      • getCombinedKey

        @NotNull
        @NotNull java.lang.String getCombinedKey()
        Gets a combined key that represents the path filter sets of all affected context-aware services that matched for the given resource and a timestamp of the service registration for this service interface changed last. That means for two different resources that get the same combined key the same list of services is returned, and the result that was calculated from them can be cached with this key. Of course this makes only sense when the services always the same result as long as they are registered.
        Returns:
        Key string