Package org.springframework.data.aot
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.-
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
Deprecated, for removal: This API element is subject to removal in a future version.Resolves thetypeif present. -
ifTypePresent
Deprecated, for removal: This API element is subject to removal in a future version.Determines whether thetypeis declared on the application classpath and performs the given, requiredactionif present. -
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
Deprecated, for removal: This API element is subject to removal in a future version.Return aListcontaining bean names that implement this type.- Returns:
- a
Listof bean names. The list is empty if the bean factory does not hold any beans of this type.
-