Interface IServicesHolder<T>

Type Parameters:
T -
All Known Implementing Classes:
DynamicServiceHolder

public interface IServicesHolder<T>
Holder interface for list of service
Author:
hengsin
  • Method Summary

    Modifier and Type
    Method
    Description
    Get list of service reference, sorted by service.ranking (from highest to lowest ranking).
    Get list of service, sorted by service.ranking (from highest to lowest ranking)
  • Method Details

    • getServices

      List<T> getServices()
      Get list of service, sorted by service.ranking (from highest to lowest ranking)
      Returns:
      list of service instance. null if not available or no matching service found
    • getServiceReferences

      List<IServiceReferenceHolder<T>> getServiceReferences()
      Get list of service reference, sorted by service.ranking (from highest to lowest ranking). If you want to cache service, cache IServiceReferenceHolder instead of the actual service object
      Returns:
      list of IServiceReferenceHolder