Class SpringCloudPropertySourceImporter
java.lang.Object
io.micronaut.discovery.config.RetryablePropertySourceImporter<SpringCloudPropertySourceImporter.SpringCloudImport>
io.micronaut.discovery.spring.imports.SpringCloudPropertySourceImporter
- All Implemented Interfaces:
io.micronaut.context.env.PropertySourceImporter<io.micronaut.discovery.config.RetryablePropertySourceImporter.RetryableImportDeclaration<SpringCloudPropertySourceImporter.SpringCloudImport>>, io.micronaut.core.util.Toggleable, AutoCloseable
@Internal
public final class SpringCloudPropertySourceImporter
extends io.micronaut.discovery.config.RetryablePropertySourceImporter<SpringCloudPropertySourceImporter.SpringCloudImport>
Property source importer for explicit Spring Cloud Config Server paths.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordTyped Spring Cloud Config import declaration.Nested classes/interfaces inherited from class io.micronaut.discovery.config.RetryablePropertySourceImporter
io.micronaut.discovery.config.RetryablePropertySourceImporter.RetryableImportDeclaration<D>Nested classes/interfaces inherited from interface io.micronaut.context.env.PropertySourceImporter
io.micronaut.context.env.PropertySourceImporter.ImportContext<T> -
Field Summary
Fields inherited from class io.micronaut.discovery.config.RetryablePropertySourceImporter
RETRY_ATTEMPTS, RETRY_COUNT, RETRY_DELAY, RETRY_JITTER, RETRY_MAX_DELAY, RETRY_MULTIPLIER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected Optional<io.micronaut.context.env.PropertySource> importRetryablePropertySource(io.micronaut.context.env.PropertySourceImporter.ImportContext<SpringCloudPropertySourceImporter.SpringCloudImport> context) newImportDeclaration(io.micronaut.core.convert.value.ConvertibleValues<Object> values, io.micronaut.retry.RetryPolicy retryPolicy) newImportDeclaration(io.micronaut.core.util.ConnectionString connectionString, io.micronaut.retry.RetryPolicy retryPolicy) Methods inherited from class io.micronaut.discovery.config.RetryablePropertySourceImporter
close, importPropertySource, newImportDeclaration, newImportDeclaration, resolveRetryPolicyMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.util.Toggleable
isEnabled
-
Constructor Details
-
SpringCloudPropertySourceImporter
public SpringCloudPropertySourceImporter()
-
-
Method Details
-
getProvider
-
newImportDeclaration
protected SpringCloudPropertySourceImporter.SpringCloudImport newImportDeclaration(io.micronaut.core.util.ConnectionString connectionString, io.micronaut.retry.RetryPolicy retryPolicy) - Specified by:
newImportDeclarationin classio.micronaut.discovery.config.RetryablePropertySourceImporter<SpringCloudPropertySourceImporter.SpringCloudImport>
-
newImportDeclaration
protected SpringCloudPropertySourceImporter.SpringCloudImport newImportDeclaration(io.micronaut.core.convert.value.ConvertibleValues<Object> values, io.micronaut.retry.RetryPolicy retryPolicy) - Specified by:
newImportDeclarationin classio.micronaut.discovery.config.RetryablePropertySourceImporter<SpringCloudPropertySourceImporter.SpringCloudImport>
-
importRetryablePropertySource
protected Optional<io.micronaut.context.env.PropertySource> importRetryablePropertySource(io.micronaut.context.env.PropertySourceImporter.ImportContext<SpringCloudPropertySourceImporter.SpringCloudImport> context) - Specified by:
importRetryablePropertySourcein classio.micronaut.discovery.config.RetryablePropertySourceImporter<SpringCloudPropertySourceImporter.SpringCloudImport>
-
closeRetryableImporter
protected void closeRetryableImporter()- Overrides:
closeRetryableImporterin classio.micronaut.discovery.config.RetryablePropertySourceImporter<SpringCloudPropertySourceImporter.SpringCloudImport>
-