Interface ContextAwareServiceResolver.ResolveAllResult<S extends ContextAwareService>

Type Parameters:
S - Service interface or class
Enclosing interface:
ContextAwareServiceResolver

public static interface ContextAwareServiceResolver.ResolveAllResult<S extends ContextAwareService>
Result of the ContextAwareServiceResolver.resolveAll(Class, Adaptable) method. All methods are implemented in a lazy fashion.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull String
    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 Stream<S>
    Gets all matching services
  • Method Details

    • getServices

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

      @NotNull @NotNull 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