Interface AutoConfigurationMetadata
public interface AutoConfigurationMetadata
Provides access to meta-data written by the auto-configure annotation processor.
- Since:
- 1.5.0
- Author:
- Phillip Webb
-
Method Summary
Modifier and TypeMethodDescription@Nullable StringGet anStringvalue from the meta-data.@Nullable StringGet anStringvalue from the meta-data.@Nullable IntegergetInteger(String className, String key) Get anIntegervalue from the meta-data.@Nullable IntegergetInteger(String className, String key, @Nullable Integer defaultValue) Get anIntegervalue from the meta-data.Get aSetvalue from the meta-data.Get aSetvalue from the meta-data.booleanwasProcessed(String className) Returntrueif the specified class name was processed by the annotation processor.
-
Method Details
-
wasProcessed
Returntrueif the specified class name was processed by the annotation processor.- Parameters:
className- the source class- Returns:
- if the class was processed
-
getInteger
-
getInteger
@Contract("_, _, !null -> !null") @Nullable Integer getInteger(String className, String key, @Nullable Integer defaultValue) Get anIntegervalue from the meta-data.- Parameters:
className- the source classkey- the meta-data keydefaultValue- the default value- Returns:
- the meta-data value or
defaultValue
-
getSet
-
getSet
@Contract("_, _, !null -> !null") @Nullable Set<String> getSet(String className, String key, @Nullable Set<String> defaultValue) Get aSetvalue from the meta-data.- Parameters:
className- the source classkey- the meta-data keydefaultValue- the default value- Returns:
- the meta-data value or
defaultValue
-
get
-
get
-