Interface AotContext.TypeIntrospector
- Enclosing interface:
AotContext
public static interface AotContext.TypeIntrospector
Type-based introspector to resolve
Class from a type name and to introspect the bean factory for presence
of beans.- Since:
- 3.0
- Author:
- Christoph Strobl, John Blum, Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptionReturn aListcontaining bean names that implement this type.booleanhasBean()Determines whether the associated bean factory contains at least one bean of this type.default voidifTypePresent(Consumer<Class<?>> action) booleanDetermines whether @link Class type} is present on the application classpath.Class<?> Resolves thetypeif present.
-
Method Details
-
isTypePresent
boolean isTypePresent()Determines whether @link Class type} is present on the application classpath.- Returns:
- true if the
typeis present on the application classpath. - See Also:
-
resolveRequiredType
- Returns:
- a resolved
typefor the given. - Throws:
TypeNotPresentException- if thetypecannot be found.
-
resolveType
-
ifTypePresent
-
hasBean
boolean hasBean()Determines whether the associated bean factory contains at least one bean of this type.- Returns:
- true if the
typeis present on the application classpath.
-
getBeanNames
-