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

org.hibernate.annotations.common.reflection.java.JavaMetadataProvider Maven / Gradle / Ivy

There is a newer version: 7.0.3.Final
Show newest version
/*
 * SPDX-License-Identifier: Apache-2.0
 * Copyright: Red Hat Inc. and Hibernate Authors
 */
package org.hibernate.annotations.common.reflection.java;

import java.lang.reflect.AnnotatedElement;
import java.util.Collections;
import java.util.Map;
import org.hibernate.annotations.common.reflection.AnnotationReader;
import org.hibernate.annotations.common.reflection.MetadataProvider;

/**
 * @author Emmanuel Bernard
*/
public final class JavaMetadataProvider implements MetadataProvider {

	public Map getDefaults() {
		return Collections.emptyMap();
	}

	public AnnotationReader getAnnotationReader(AnnotatedElement annotatedElement) {
		return new JavaAnnotationReader(annotatedElement);
	}

	@Override
	public void reset() {
		//no-op
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy