Interface ModelLookup


@ProviderType public interface ModelLookup
If the models that are being exposed do not have resource types or they have a more complex realationship than simply the type this object can be used to programmatically map the resource to a class available in the bundle.
  • Method Summary

    Modifier and Type
    Method
    Description
    getModel(Resource resource)
    Maps a resource to class
  • Method Details

    • getModel

      Class<?> getModel(Resource resource)
      Maps a resource to class
      Parameters:
      resource - the resource that needs mapping
      Returns:
      the class to use to represent the resource