接口 AutoConfigurationMetadata
public interface AutoConfigurationMetadata
Provides access to meta-data written by the auto-configure annotation processor.- 从以下版本开始:
- 1.5.0
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 String
get(String className, String key)
Get anString
value from the meta-data.String
get(String className, String key, String defaultValue)
Get anString
value from the meta-data.Integer
getInteger(String className, String key)
Get anInteger
value from the meta-data.Integer
getInteger(String className, String key, Integer defaultValue)
Get anInteger
value from the meta-data.Set<String>
getSet(String className, String key)
Get aSet
value from the meta-data.Set<String>
getSet(String className, String key, Set<String> defaultValue)
Get aSet
value from the meta-data.boolean
wasProcessed(String className)
Returntrue
if the specified class name was processed by the annotation processor.
方法详细资料
wasProcessed
boolean wasProcessed(String className)
Returntrue
if the specified class name was processed by the annotation processor.- 参数:
className
- the source class- 返回:
- if the class was processed
getInteger
Integer getInteger(String className, String key)
Get anInteger
value from the meta-data.- 参数:
className
- the source classkey
- the meta-data key- 返回:
- the meta-data value or
null
getInteger
Integer getInteger(String className, String key, Integer defaultValue)
Get anInteger
value from the meta-data.- 参数:
className
- the source classkey
- the meta-data keydefaultValue
- the default value- 返回:
- the meta-data value or
defaultValue
getSet
Set<String> getSet(String className, String key)
Get aSet
value from the meta-data.- 参数:
className
- the source classkey
- the meta-data key- 返回:
- the meta-data value or
null
getSet
Set<String> getSet(String className, String key, Set<String> defaultValue)
Get aSet
value from the meta-data.- 参数:
className
- the source classkey
- the meta-data keydefaultValue
- the default value- 返回:
- the meta-data value or
defaultValue
get
String get(String className, String key)
Get anString
value from the meta-data.- 参数:
className
- the source classkey
- the meta-data key- 返回:
- the meta-data value or
null