@LoadLevel(name="ScopeBeans", order=200) public class ScopeBeansScannerChecker extends Object implements ScannerChecker
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
JOB_SCOPE_NAME |
static String |
REQUEST_SCOPE_NAME |
static String |
SESSION_SCOPE_NAME |
static String |
STEP_SCOPE_NAME |
| 构造器和说明 |
|---|
ScopeBeansScannerChecker() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
addExcludeScopes(String... scopeNames)
Add more exclude scopes.
|
boolean |
check(Object bean,
String beanName,
org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
Match the '@Scope' beans, and check whether exclusion is required.
|
public static void addExcludeScopes(String... scopeNames)
scopeNames - the scope namespublic boolean check(Object bean, String beanName, @Nullable org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) throws Exception
check 在接口中 ScannerCheckerbean - the beanbeanName - the bean namebeanFactory - the bean factoryExceptionCopyright © 2022 Seata. All rights reserved.