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 Detail

      • getModel

        java.lang.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