Class ReflectionBeanIntrospectionFallback
java.lang.Object
io.micronaut.reflection.ReflectionBeanIntrospectionFallback
- All Implemented Interfaces:
BeanIntrospectionFallback, Ordered
public final class ReflectionBeanIntrospectionFallback
extends Object
implements BeanIntrospectionFallback
The
BeanIntrospectionFallback describing reflectively the types the shared introspector has no
generated introspection for, when ReflectionIntrospectionPolicy allows them. Registered as a service
by this module.- Since:
- 5.2.0
- Author:
- Denis Stepanov
-
Field Summary
Fields inherited from interface Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionCreates the fallback; it is instantiated by the service loader. -
Method Summary
Modifier and TypeMethodDescription<T> Optional<BeanIntrospection<T>> findIntrospection(Class<T> beanType) Finds an introspection for a type the introspector has no generated introspection for.toString()
-
Constructor Details
-
ReflectionBeanIntrospectionFallback
public ReflectionBeanIntrospectionFallback()Creates the fallback; it is instantiated by the service loader.
-
-
Method Details
-
findIntrospection
Description copied from interface:BeanIntrospectionFallbackFinds an introspection for a type the introspector has no generated introspection for.- Specified by:
findIntrospectionin interfaceBeanIntrospectionFallback- Type Parameters:
T- The bean type- Parameters:
beanType- The bean type- Returns:
- The introspection, or empty when this fallback does not serve the type
-
toString
-