Polish "Replace Configuration fully qualified name by constant"
See gh-42311
This commit is contained in:
parent
9bcfc72307
commit
242803d59b
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2012-2023 the original author or authors.
|
* Copyright 2012-2024 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -61,15 +61,15 @@ import org.springframework.boot.configurationprocessor.metadata.ItemMetadata;
|
||||||
* @author Scott Frederick
|
* @author Scott Frederick
|
||||||
* @since 1.2.0
|
* @since 1.2.0
|
||||||
*/
|
*/
|
||||||
@SupportedAnnotationTypes({ ConfigurationMetadataAnnotationProcessor.AUTO_CONFIGURATION_ANNOTATION,
|
@SupportedAnnotationTypes({ ConfigurationMetadataAnnotationProcessor.CONFIGURATION_PROPERTIES_ANNOTATION,
|
||||||
ConfigurationMetadataAnnotationProcessor.CONFIGURATION_PROPERTIES_ANNOTATION,
|
ConfigurationMetadataAnnotationProcessor.AUTO_CONFIGURATION_ANNOTATION,
|
||||||
|
ConfigurationMetadataAnnotationProcessor.CONFIGURATION_ANNOTATION,
|
||||||
ConfigurationMetadataAnnotationProcessor.CONTROLLER_ENDPOINT_ANNOTATION,
|
ConfigurationMetadataAnnotationProcessor.CONTROLLER_ENDPOINT_ANNOTATION,
|
||||||
ConfigurationMetadataAnnotationProcessor.ENDPOINT_ANNOTATION,
|
ConfigurationMetadataAnnotationProcessor.ENDPOINT_ANNOTATION,
|
||||||
ConfigurationMetadataAnnotationProcessor.JMX_ENDPOINT_ANNOTATION,
|
ConfigurationMetadataAnnotationProcessor.JMX_ENDPOINT_ANNOTATION,
|
||||||
ConfigurationMetadataAnnotationProcessor.REST_CONTROLLER_ENDPOINT_ANNOTATION,
|
ConfigurationMetadataAnnotationProcessor.REST_CONTROLLER_ENDPOINT_ANNOTATION,
|
||||||
ConfigurationMetadataAnnotationProcessor.SERVLET_ENDPOINT_ANNOTATION,
|
ConfigurationMetadataAnnotationProcessor.SERVLET_ENDPOINT_ANNOTATION,
|
||||||
ConfigurationMetadataAnnotationProcessor.WEB_ENDPOINT_ANNOTATION,
|
ConfigurationMetadataAnnotationProcessor.WEB_ENDPOINT_ANNOTATION })
|
||||||
ConfigurationMetadataAnnotationProcessor.CONFIGURATION_ANNOTATION })
|
|
||||||
public class ConfigurationMetadataAnnotationProcessor extends AbstractProcessor {
|
public class ConfigurationMetadataAnnotationProcessor extends AbstractProcessor {
|
||||||
|
|
||||||
static final String ADDITIONAL_METADATA_LOCATIONS_OPTION = "org.springframework.boot.configurationprocessor.additionalMetadataLocations";
|
static final String ADDITIONAL_METADATA_LOCATIONS_OPTION = "org.springframework.boot.configurationprocessor.additionalMetadataLocations";
|
||||||
|
@ -86,6 +86,10 @@ public class ConfigurationMetadataAnnotationProcessor extends AbstractProcessor
|
||||||
|
|
||||||
static final String DEFAULT_VALUE_ANNOTATION = "org.springframework.boot.context.properties.bind.DefaultValue";
|
static final String DEFAULT_VALUE_ANNOTATION = "org.springframework.boot.context.properties.bind.DefaultValue";
|
||||||
|
|
||||||
|
static final String AUTO_CONFIGURATION_ANNOTATION = "org.springframework.boot.autoconfigure.AutoConfiguration";
|
||||||
|
|
||||||
|
static final String CONFIGURATION_ANNOTATION = "org.springframework.context.annotation.Configuration";
|
||||||
|
|
||||||
static final String CONTROLLER_ENDPOINT_ANNOTATION = "org.springframework.boot.actuate.endpoint.web.annotation.ControllerEndpoint";
|
static final String CONTROLLER_ENDPOINT_ANNOTATION = "org.springframework.boot.actuate.endpoint.web.annotation.ControllerEndpoint";
|
||||||
|
|
||||||
static final String ENDPOINT_ANNOTATION = "org.springframework.boot.actuate.endpoint.annotation.Endpoint";
|
static final String ENDPOINT_ANNOTATION = "org.springframework.boot.actuate.endpoint.annotation.Endpoint";
|
||||||
|
@ -102,10 +106,6 @@ public class ConfigurationMetadataAnnotationProcessor extends AbstractProcessor
|
||||||
|
|
||||||
static final String NAME_ANNOTATION = "org.springframework.boot.context.properties.bind.Name";
|
static final String NAME_ANNOTATION = "org.springframework.boot.context.properties.bind.Name";
|
||||||
|
|
||||||
static final String AUTO_CONFIGURATION_ANNOTATION = "org.springframework.boot.autoconfigure.AutoConfiguration";
|
|
||||||
|
|
||||||
static final String CONFIGURATION_ANNOTATION = "org.springframework.context.annotation.Configuration";
|
|
||||||
|
|
||||||
private static final Set<String> SUPPORTED_OPTIONS = Collections
|
private static final Set<String> SUPPORTED_OPTIONS = Collections
|
||||||
.unmodifiableSet(Collections.singleton(ADDITIONAL_METADATA_LOCATIONS_OPTION));
|
.unmodifiableSet(Collections.singleton(ADDITIONAL_METADATA_LOCATIONS_OPTION));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue