Interface AotContext.TypeIntrospector
- Enclosing interface:
AotContext
Deprecated, for removal: This API element is subject to removal in a future version.
since 4.0 as this isn't widely used and can be easily implemented within user code.
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 TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Return aListcontaining bean names that implement this type.booleanhasBean()Deprecated, for removal: This API element is subject to removal in a future version.Determines whether the associated bean factory contains at least one bean of this type.default voidifTypePresent(Consumer<Class<?>> action) Deprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.Determines whether @link Class type} is present on the application classpath.Class<?> Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Resolves thetypeif present.
-
Method Details
-
isTypePresent
boolean isTypePresent()Deprecated, for removal: This API element is subject to removal in a future version.Determines whether @link Class type} is present on the application classpath.- Returns:
- true if the
typeis present on the application classpath. - See Also:
-
resolveRequiredType
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- a resolved
typefor the given. - Throws:
TypeNotPresentException- if thetypecannot be found.
-
resolveType
-
ifTypePresent
-
hasBean
boolean hasBean()Deprecated, for removal: This API element is subject to removal in a future version.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
-