-
public interface BeanProviderUsed to tell the library how to instantiate a bean.
-
-
字段概要
字段 修饰符和类型 字段 说明 static intDEFAULT_PRIORITY
-
-
-
字段详细资料
-
DEFAULT_PRIORITY
static final int DEFAULT_PRIORITY
- 另请参阅:
- 常量字段值
-
-
方法详细资料
-
getPriority
default int getPriority()
The priority. The higher is selected than lower.- 返回:
- the priority
-
support
boolean support(Class<?> type, BeanUsage usage)
Test whether the type is supported by this provider. If not sure or hard to check, just return true. Ifget(Class, BeanUsage, Object)return null, The library think this provider not support the type as well.- 参数:
type- the bean typeusage- the bean usage- 返回:
- whether the type is supported by this provider.
-
-