Package org.springframework.data.util
Class TypeCollector
java.lang.Object
org.springframework.data.util.TypeCollector
Collector to inspect domain types and discover the type graph that is relevant for Spring Data operations.
Type inspection walks through all class members (fields, methods, constructors) and introspects those for additional types that are part of the domain model.
- Since:
- 3.0
- Author:
- Christoph Strobl, Sebastien Deleuze, John Blum
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfilterFields
(Predicate<Field> filter) filterTypes
(Predicate<Class<?>> filter) static TypeCollector.ReachableTypes
Inspect the given type and resolve those reachable via fields, methods, generics, ...static TypeCollector.ReachableTypes
inspect
(Collection<Class<?>> types)
-
Constructor Details
-
TypeCollector
public TypeCollector()
-
-
Method Details
-
filterFields
-
filterTypes
-
inspect
Inspect the given type and resolve those reachable via fields, methods, generics, ...- Parameters:
types
- the types to inspect- Returns:
- a type model collector for the type
-
inspect
-