Package org.springframework.data.aot
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.-
Method Summary
Modifier and TypeMethodDescriptionReturn aList
containing bean names that implement this type.boolean
hasBean()
Determines whether the associated bean factory contains at least one bean of this type.default void
ifTypePresent
(Consumer<Class<?>> action) boolean
Determines whether @link Class type} is present on the application classpath.Class<?>
Resolves thetype
if present.
-
Method Details
-
isTypePresent
boolean isTypePresent()Determines whether @link Class type} is present on the application classpath.- Returns:
- true if the
type
is present on the application classpath. - See Also:
-
resolveRequiredType
- Returns:
- a resolved
type
for the given. - Throws:
TypeNotPresentException
- if thetype
cannot be found.
-
resolveType
Resolves thetype
if present. -
ifTypePresent
Determines whether thetype
is declared on the application classpath and performs the given, requiredaction
if present. -
hasBean
boolean hasBean()Determines whether the associated bean factory contains at least one bean of this type.- Returns:
- true if the
type
is present on the application classpath.
-
getBeanNames
Return aList
containing bean names that implement this type.- Returns:
- a
List
of bean names. The list is empty if the bean factory does not hold any beans of this type.
-