public class ContainerResolveUtils extends Object
| 构造器和说明 |
|---|
ContainerResolveUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
loadConstantClass(Set<Class<?>> types,
ContainerManager containerManager,
AnnotationFinder annotationFinder)
Load container from the specified class type which is annotated by
ContainerConstant. |
static void |
loadContainerEnum(Set<Class<?>> types,
boolean isOnlyLoadAnnotatedEnum,
ContainerManager containerManager,
AnnotationFinder annotationFinder,
PropertyOperator propertyOperator)
Load container from the specified class type which is annotated by
ContainerEnum. |
static Set<Class<?>> |
resolveComponentTypesFromMetadata(org.springframework.core.annotation.AnnotationAttributes annotationAttributes,
ClassScanner classScanner,
@Nullable org.springframework.util.StringValueResolver stringValueResolver)
Resolve component types from annotation metadata.
|
static Collection<Container<Object>> |
resolveConstantContainers(Set<Class<?>> types,
AnnotationFinder annotationFinder)
Resolve container from the specified class type which is annotated by
ContainerConstant. |
static Collection<Container<Object>> |
resolveEnumContainers(Set<Class<?>> types,
boolean isOnlyLoadAnnotatedEnum,
AnnotationFinder annotationFinder,
PropertyOperator propertyOperator)
Resolve container from the specified class type which is annotated by
ContainerEnum. |
public static void loadConstantClass(Set<Class<?>> types, ContainerManager containerManager, AnnotationFinder annotationFinder)
ContainerConstant.types - the specified class typecontainerManager - container managerannotationFinder - annotation finderpublic static Collection<Container<Object>> resolveConstantContainers(Set<Class<?>> types, AnnotationFinder annotationFinder)
ContainerConstant.types - the specified class typeannotationFinder - annotation finderpublic static void loadContainerEnum(Set<Class<?>> types, boolean isOnlyLoadAnnotatedEnum, ContainerManager containerManager, AnnotationFinder annotationFinder, PropertyOperator propertyOperator)
ContainerEnum.types - the specified class typeisOnlyLoadAnnotatedEnum - whether only load the class type which is annotated by ContainerEnumcontainerManager - container managerannotationFinder - annotation finderpropertyOperator - property operatorpublic static Collection<Container<Object>> resolveEnumContainers(Set<Class<?>> types, boolean isOnlyLoadAnnotatedEnum, AnnotationFinder annotationFinder, PropertyOperator propertyOperator)
ContainerEnum.types - the specified class typeisOnlyLoadAnnotatedEnum - whether only load the class type which is annotated by ContainerEnumannotationFinder - annotation finderpropertyOperator - property operatorpublic static Set<Class<?>> resolveComponentTypesFromMetadata(org.springframework.core.annotation.AnnotationAttributes annotationAttributes, ClassScanner classScanner, @Nullable org.springframework.util.StringValueResolver stringValueResolver)
Resolve component types from annotation metadata.
Only support OperatorScan, ContainerConstantScan and ContainerEnumScan annotations.
annotationAttributes - annotation attributesclassScanner - class scannerstringValueResolver - string value resolverOperatorScan,
ContainerConstantScan,
ContainerEnumScanCopyright © 2024. All rights reserved.