Top Description Methods
org.hibernate.annotations.common.reflection

public Interface ReflectionManager

Known Direct Implementers
org.hibernate.annotations.common.reflection.java.JavaReflectionManager
Imports
java.lang.reflect.AnnotatedElement, .Method, .Type, java.util.Map

The entry point to the reflection layer (a.k.a. the X* layer).
Authors
Paolo Perrotta, Davide Marchignoli, Sanne Grinovero

Method Summary

Modifier and TypeMethod and Description
public AnnotationReader
public <T> boolean
equals(XClass class1, Class<T> class2)

public Map<K, V>
public default void
reset()

This resets any internal caches.

public Class<T>
toClass(XClass xClazz)

public Method
toMethod(XMethod method)

public Type
toType(XClass xClazz)

public <T> XClass
toXClass(Class<T> clazz)

public XPackage

Method Detail

buildAnnotationReaderback to summary
public AnnotationReader buildAnnotationReader(AnnotatedElement annotatedElement)
equalsback to summary
public <T> boolean equals(XClass class1, Class<T> class2)
getDefaultsback to summary
public Map<K, V> getDefaults()
resetback to summary
public default void reset()

This resets any internal caches. This will free up memory in some implementations, at the cost of possibly being a bit slower if its services are needed again.

Ideally the ReflectionManager should be discarded after use, but sometimes that's not posible. This method is intended to be used when there is reasonable expectation for te ReflectionManager to no longer be needed, while having the option to still use it in case the assumption doesn't hold true.

Careful: after invoking this method, returned X* instances will no longer honour any identity equality contract with X* instances which have been returned before resetting the cache.

This operation does not affect the configuration.
toClassback to summary
public Class<T> toClass(XClass xClazz)
toMethodback to summary
public Method toMethod(XMethod method)
toTypeback to summary
public Type toType(XClass xClazz)
toXClassback to summary
public <T> XClass toXClass(Class<T> clazz)
toXPackageback to summary
public XPackage toXPackage(Package pkg)