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

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

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

/**
 * A factory for building {@link MappedClass} meta data
 */
public interface MappedClassFactory {

    /**
     * @param  type of {@link MappedClass}
     * @param clazz for which to obtain {@link MappedClass} instance
     * @return an instance of MappedClass describing clazz, or null if {@link #isMappable(Class)}
     *         returns false
     */
     MappedClass getMappedClass(Class clazz);

    /**
     * @param type to check if is mappable
     * @return true if the factory supports mapping the type, false otherwise
     */
    boolean isMappable(Class type);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy