Interface ServiceLocator


public interface ServiceLocator
Factory for acquiring instances of Platform services. Rarely used directly by clients - prefer Services.get(Class).
  • Method Summary

    Modifier and Type Method Description
    <T extends Service>
    T
    getService​(java.lang.Class<? extends T> intf)
    Returns an appropriate instance of the given service interface.
  • Method Details

    • getService

      <T extends Service> T getService​(java.lang.Class<? extends T> intf)
      Returns an appropriate instance of the given service interface.
      Type Parameters:
      T - interface type
      Parameters:
      intf - interface class
      Returns:
      appropriate instance of the given service interface