Annotation Type ConfigurationSource
-
@Documented @Target({ANNOTATION_TYPE,METHOD}) @Retention(RUNTIME) @Repeatable(ConfigurationSources.class) public @interface ConfigurationSource
Source of aConfigurationProviderfor a specific configurable class and configuration type.
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description Class<?>configurableThe configurable class which can be instantiated using the configuration of typeconfiguration()provided by theprovider().Class<?>configurationThe configuration class which is used to configure a new instance ofconfigurable().Class<? extends ConfigurationProvider<?>>providerThe provider which creates the configuration instance.
-
-
-
Element Detail
-
provider
Class<? extends ConfigurationProvider<?>> provider
The provider which creates the configuration instance. Must implement theConfigurationProviderinterface 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
-
-