Interface ReflectionManager
-
- All Known Implementing Classes:
JavaReflectionManager
public interface ReflectionManagerThe entry point to the reflection layer (a.k.a. the X* layer).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description AnnotationReaderbuildAnnotationReader(AnnotatedElement annotatedElement)<T> booleanequals(XClass class1, Class<T> class2)MapgetDefaults()default voidreset()This resets any internal caches.ClasstoClass(XClass xClazz)MethodtoMethod(XMethod method)TypetoType(XClass xClazz)<T> XClasstoXClass(Class<T> clazz)XPackagetoXPackage(Package pkg)
-
-
-
Method Detail
-
buildAnnotationReader
AnnotationReader buildAnnotationReader(AnnotatedElement annotatedElement)
-
getDefaults
Map getDefaults()
-
reset
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.
-
-