Interface ResourceResolver

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <R> R getResource​(Class<R> clsResource)
      Attempts to retrieve the resource that was registered with the specified class.
      <R> R getResource​(Class<R> clsResource, String sResourceName)
      Attempts to retrieve the resource that was registered with the specified class and name.
    • Method Detail

      • getResource

        <R> R getResource​(Class<R> clsResource)
        Attempts to retrieve the resource that was registered with the specified class.
        Type Parameters:
        R - the type of the resource
        Parameters:
        clsResource - the class of the resource
        Returns:
        the registered resource or null if the resource is unknown to the ResourceRegistry
      • getResource

        <R> R getResource​(Class<R> clsResource,
                          String sResourceName)
        Attempts to retrieve the resource that was registered with the specified class and name.
        Type Parameters:
        R - the type of the resource
        Parameters:
        clsResource - the class of the resource
        sResourceName - the name of the resource
        Returns:
        the registered resource or null if the resource is unknown to the ResourceRegistry