Annotation Type ConfigurationSource
-
@Documented @Target({ANNOTATION_TYPE,METHOD}) @Retention(RUNTIME) @Repeatable(ConfigurationSources.class) public @interface ConfigurationSource
Source of aConfigurationProvider
for a specific configurable class and configuration type.
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description Class<?>
configurable
The configurable class which can be instantiated using the configuration of typeconfiguration()
provided by theprovider()
.Class<?>
configuration
The configuration class which is used to configure a new instance ofconfigurable()
.Class<? extends ConfigurationProvider<?>>
provider
The provider which creates the configuration instance.
-
-
-
Element Detail
-
provider
Class<? extends ConfigurationProvider<?>> provider
The provider which creates the configuration instance. Must implement theConfigurationProvider
interface for the givenconfiguration()
class.- Returns:
- the provider to use
-
-
-
configurable
Class<?> configurable
The configurable class which can be instantiated using the configuration of typeconfiguration()
provided by theprovider()
.- Returns:
- the configurable class
-
-
-
configuration
Class<?> configuration
The configuration class which is used to configure a new instance ofconfigurable()
.- Returns:
- the type of the configuration
-
-