Deprecated
for removal since 6.1.
as of 6.1, in favor of the AOT engine.
META-INF/spring.components.
An arbitrary number of stereotypes can be registered (and queried) on the index: a
typical example is the fully qualified name of an annotation that flags the class for
a certain use case. The following call returns all the @Component
candidate types for the com.example package (and its sub-packages):
Set<String> candidates = index.getCandidateTypes(
"com.example", "org.springframework.stereotype.Component");
The type is usually the fully qualified name of a class, though this is
not a rule. Similarly, the stereotype is usually the fully qualified name of
a target type but it can be any marker really.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final MultiValueMap | |
| private static final AntPathMatcher |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Set | Returns: the candidate types associated with the specifiedstereotype
or an empty set if none has been found for the specified basePackagethe package to check for candidates basePackage, String the stereotype to use stereotype)Return the candidate types that are associated with the specified stereotype. |
| private static MultiValueMap |
| index | back to summary |
|---|---|
| private final MultiValueMap<String, CandidateComponentsIndex. | |
| pathMatcher | back to summary |
|---|---|
| private static final AntPathMatcher pathMatcher | |
| CandidateComponentsIndex | back to summary |
|---|---|
| pack-priv CandidateComponentsIndex(List<Properties> content) | |
| getCandidateTypes | back to summary |
|---|---|
| public Set Return the candidate types that are associated with the specified stereotype. | |
| parseIndex | back to summary |
|---|---|
| private static MultiValueMap | |
| Modifier and Type | Method and Description |
|---|---|
| public boolean |
| packageName | back to summary |
|---|---|
| private final String packageName | |
| type | back to summary |
|---|---|
| private final String type | |
| Entry | back to summary |
|---|---|
| pack-priv Entry(String type) | |
| match | back to summary |
|---|---|
| public boolean match(String basePackage) | |