@LoadLevel(name="ScopeBeans", order=200) public class ScopeBeansScannerChecker extends Object implements ScannerChecker
| Modifier and Type | Field and Description |
|---|---|
static String |
JOB_SCOPE_NAME |
static String |
REQUEST_SCOPE_NAME |
static String |
SESSION_SCOPE_NAME |
static String |
STEP_SCOPE_NAME |
| Constructor and Description |
|---|
ScopeBeansScannerChecker() |
| Modifier and Type | Method and Description |
|---|---|
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 final String REQUEST_SCOPE_NAME
public static final String SESSION_SCOPE_NAME
public static final String JOB_SCOPE_NAME
public static final String STEP_SCOPE_NAME
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 in interface ScannerCheckerbean - the beanbeanName - the bean namebeanFactory - the bean factoryException - the exceptionCopyright © 2023 Seata. All rights reserved.