All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.restup.mapping.MappedClassRegistry Maven / Gradle / Ivy

There is a newer version: 0.0.5
Show newest version
package com.github.restup.mapping;

import java.lang.reflect.Type;

public interface MappedClassRegistry {


    /**
     * @param type of {@link MappedClass} to get
     * @return an instance of MappedClass describing type, or null if type is not mappable
     */
    MappedClass getMappedClass(Type type);

    /**
     * @param  type of {@link MappedClass}
     * @param resourceClass type of class
     * @return mapped class instance
     */
    @SuppressWarnings("unchecked")
	default  MappedClass getMappedClass(Class resourceClass) {
        return (MappedClass) getMappedClass((Type) resourceClass);
    }
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy