Fix Javadoc @Since checkstle violations

Apply consistent `@Since` tags and retrofit the existing code using a
best guess from the git history.

Closes gh-17360
This commit is contained in:
Phillip Webb 2019-06-28 17:40:56 -07:00
parent dc5c5702f8
commit d91f27e11f
463 changed files with 687 additions and 378 deletions

View File

@ -41,6 +41,7 @@ import org.springframework.util.Assert;
* (wrappers for AuditEvent).
*
* @author Dave Syer
* @since 1.0.0
* @see AuditEventRepository
*/
@JsonInclude(Include.NON_EMPTY)

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2016 the original author or authors.
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -24,6 +24,7 @@ import java.util.List;
*
* @author Dave Syer
* @author Vedran Pavic
* @since 1.0.0
*/
public interface AuditEventRepository {

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2017 the original author or authors.
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -28,6 +28,7 @@ import org.springframework.util.Assert;
* @author Dave Syer
* @author Phillip Webb
* @author Vedran Pavic
* @since 1.0.0
*/
public class InMemoryAuditEventRepository implements AuditEventRepository {

View File

@ -27,6 +27,7 @@ import org.springframework.util.Assert;
* Spring {@link ApplicationEvent} to encapsulate {@link AuditEvent}s.
*
* @author Dave Syer
* @since 1.0.0
*/
public class AuditApplicationEvent extends ApplicationEvent {

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2016 the original author or authors.
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -29,6 +29,7 @@ import org.springframework.boot.actuate.audit.AuditEventRepository;
* @author Dave Syer
* @author Stephane Nicoll
* @author Vedran Pavic
* @since 1.0.0
*/
public class AuditListener extends AbstractAuditListener {

View File

@ -30,6 +30,7 @@ import org.springframework.beans.factory.annotation.Qualifier;
* distinguish it from others that might be installed by the user).
*
* @author Dave Syer
* @since 1.3.0
*/
@Qualifier
@Target({ ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER, ElementType.TYPE, ElementType.ANNOTATION_TYPE })

View File

@ -37,6 +37,7 @@ import org.springframework.context.annotation.Configuration;
*
* @author Dave Syer
* @author Vedran Pavic
* @since 1.0.0
*/
@Configuration
public class AuditAutoConfiguration {

View File

@ -114,6 +114,7 @@ import org.springframework.util.StringUtils;
*
* @author Christian Dupuis
* @author Matt Benson
* @since 1.0.0
* @see ShellProperties
* @deprecated as of 1.5 since CRaSH is not actively maintained
*/

View File

@ -77,6 +77,7 @@ import org.springframework.web.servlet.handler.AbstractHandlerMethodMapping;
* @author Eddú Meléndez
* @author Meang Akira Tanaka
* @author Ben Hale
* @since 1.0.0
*/
@Configuration
@AutoConfigureAfter({ FlywayAutoConfiguration.class, LiquibaseAutoConfiguration.class })

View File

@ -50,6 +50,7 @@ import org.springframework.util.StringUtils;
*
* @author Christian Dupuis
* @author Andy Wilkinson
* @since 1.0.0
*/
@Configuration
@Conditional(JmxEnabledCondition.class)

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2016 the original author or authors.
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -26,6 +26,7 @@ import org.springframework.util.StringUtils;
* Configuration properties for JMX.
*
* @author Christian Dupuis
* @since 1.0.0
*/
@ConfigurationProperties(prefix = "endpoints.jmx")
public class EndpointMBeanExportProperties {

View File

@ -94,6 +94,7 @@ import org.springframework.web.servlet.DispatcherServlet;
* @author Johannes Edmeier
* @author Eddú Meléndez
* @author Venil Noronha
* @since 1.0.0
*/
@Configuration
@ConditionalOnClass({ Servlet.class, DispatcherServlet.class })

View File

@ -75,6 +75,7 @@ import org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolv
* @author Stephane Nicoll
* @author Andy Wilkinson
* @author Eddú Meléndez
* @since 1.0.0
* @see EndpointWebMvcAutoConfiguration
*/
@Configuration

View File

@ -59,6 +59,7 @@ import org.springframework.web.servlet.mvc.ServletWrappingController;
* @author Christian Dupuis
* @author Dave Syer
* @author Andy Wilkinson
* @since 1.0.0
*/
@Configuration
@ConditionalOnWebApplication

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2016 the original author or authors.
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -26,6 +26,7 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
*
* @author Christian Dupuis
* @author Dave Syer
* @since 1.0.0
*/
@ConfigurationProperties(prefix = "jolokia")
public class JolokiaProperties {

View File

@ -39,6 +39,7 @@ import org.springframework.util.StringUtils;
* @author Stephane Nicoll
* @author Vedran Pavic
* @see ServerProperties
* @since 1.0.0
*/
@ConfigurationProperties(prefix = "management", ignoreUnknownFields = true)
public class ManagementServerProperties implements SecurityPrerequisite {

View File

@ -33,6 +33,7 @@ import org.springframework.context.annotation.Configuration;
* {@link ManagementServerProperties} bean.
*
* @author Dave Syer
* @since 1.0.0
*/
@Configuration
@AutoConfigureAfter(ServerPropertiesAutoConfiguration.class)

View File

@ -83,6 +83,7 @@ import org.springframework.util.StringUtils;
*
* @author Dave Syer
* @author Andy Wilkinson
* @since 1.3.0
*/
@Configuration
@ConditionalOnWebApplication

View File

@ -40,6 +40,7 @@ import org.springframework.web.servlet.HandlerMapping;
* @author Phillip Webb
* @author Andy Wilkinson
* @author Sebastian Kirsch
* @since 1.0.0
*/
@Configuration
@ConditionalOnBean({ CounterService.class, GaugeService.class })

View File

@ -69,12 +69,13 @@ import org.springframework.messaging.MessageChannel;
* application context via a {@link MetricCopyExporter} firing every 5 seconds (disable
* this by setting {@code spring.metrics.export.enabled=false}).
*
* @author Dave Syer
* @since 1.0.0
* @see GaugeService
* @see CounterService
* @see MetricWriter
* @see InMemoryMetricRepository
* @see Exporter
* @author Dave Syer
*/
@Configuration
public class MetricRepositoryAutoConfiguration {

View File

@ -38,6 +38,7 @@ import org.springframework.util.StringUtils;
* @author Phillip Webb
* @author Eddú Meléndez
* @author Stephane Nicoll
* @since 1.0.0
* @deprecated as of 1.5 since CRaSH is not actively maintained
*/
@ConfigurationProperties(prefix = ShellProperties.SHELL_PREFIX, ignoreUnknownFields = true)

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2015 the original author or authors.
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -27,6 +27,7 @@ import org.springframework.context.annotation.Configuration;
* {@link EnableAutoConfiguration Auto-configuration} for {@link TraceRepository tracing}.
*
* @author Dave Syer
* @since 1.0.0
*/
@Configuration
public class TraceRepositoryAutoConfiguration {

View File

@ -40,6 +40,7 @@ import org.springframework.web.servlet.DispatcherServlet;
* tracing}.
*
* @author Dave Syer
* @since 1.0.0
*/
@Configuration
@ConditionalOnClass({ Servlet.class, DispatcherServlet.class, ServletRegistration.class })

View File

@ -28,6 +28,7 @@ import org.springframework.util.Assert;
* @param <T> the endpoint data type
* @author Phillip Webb
* @author Christian Dupuis
* @since 1.0.0
*/
public abstract class AbstractEndpoint<T> implements Endpoint<T>, EnvironmentAware {

View File

@ -45,6 +45,7 @@ import org.springframework.util.StringUtils;
* @author Phillip Webb
* @author Dave Syer
* @author Andy Wilkinson
* @since 1.0.0
*/
@ConfigurationProperties(prefix = "endpoints.autoconfig")
public class AutoConfigurationReportEndpoint extends AbstractEndpoint<Report> {

View File

@ -39,6 +39,7 @@ import org.springframework.util.Assert;
*
* @author Dave Syer
* @author Andy Wilkinson
* @since 1.0.0
*/
@ConfigurationProperties(prefix = "endpoints.beans")
public class BeansEndpoint extends AbstractEndpoint<List<Object>> implements ApplicationContextAware {

View File

@ -63,6 +63,7 @@ import org.springframework.util.StringUtils;
* @author Christian Dupuis
* @author Dave Syer
* @author Stephane Nicoll
* @since 1.0.0
*/
@ConfigurationProperties(prefix = "endpoints.configprops")
public class ConfigurationPropertiesReportEndpoint extends AbstractEndpoint<Map<String, Object>>

View File

@ -27,6 +27,7 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
* {@link Endpoint} to expose thread info.
*
* @author Dave Syer
* @since 1.0.0
*/
@ConfigurationProperties(prefix = "endpoints.dump")
public class DumpEndpoint extends AbstractEndpoint<List<ThreadInfo>> {

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2015 the original author or authors.
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -25,6 +25,7 @@ package org.springframework.boot.actuate.endpoint;
* @author Phillip Webb
* @author Dave Syer
* @author Christian Dupuis
* @since 1.0.0
* @see AbstractEndpoint
*/
public interface Endpoint<T> {

View File

@ -39,6 +39,7 @@ import org.springframework.core.env.StandardEnvironment;
* @author Phillip Webb
* @author Christian Dupuis
* @author Madhura Bhave
* @since 1.0.0
*/
@ConfigurationProperties(prefix = "endpoints.env")
public class EnvironmentEndpoint extends AbstractEndpoint<Map<String, Object>> {

View File

@ -32,6 +32,7 @@ import org.springframework.util.Assert;
* @author Dave Syer
* @author Christian Dupuis
* @author Andy Wilkinson
* @since 1.0.0
*/
@ConfigurationProperties(prefix = "endpoints.health")
public class HealthEndpoint extends AbstractEndpoint<Health> {

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2016 the original author or authors.
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -30,6 +30,7 @@ import org.springframework.util.Assert;
* @author Dave Syer
* @author Meang Akira Tanaka
* @author Stephane Nicoll
* @since 1.0.0
*/
@ConfigurationProperties(prefix = "endpoints.info")
public class InfoEndpoint extends AbstractEndpoint<Map<String, Object>> {

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2014 the original author or authors.
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -31,6 +31,7 @@ import org.springframework.util.Assert;
* @author Christian Dupuis
* @author Stephane Nicoll
* @author Phillip Webb
* @since 1.0.0
*/
public class MetricReaderPublicMetrics implements PublicMetrics {

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2015 the original author or authors.
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -32,6 +32,7 @@ import org.springframework.util.Assert;
* {@link Endpoint} to expose a collection of {@link PublicMetrics}.
*
* @author Dave Syer
* @since 1.0.0
*/
@ConfigurationProperties(prefix = "endpoints.metrics")
public class MetricsEndpoint extends AbstractEndpoint<Map<String, Object>> {

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2017 the original author or authors.
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -27,6 +27,7 @@ import org.springframework.boot.actuate.metrics.Metric;
* or across a distributed system.
*
* @author Dave Syer
* @since 1.0.0
* @see SystemPublicMetrics SystemPublicMetrics for an example implementation
*/
public interface PublicMetrics {

View File

@ -37,6 +37,7 @@ import org.springframework.web.servlet.handler.AbstractUrlHandlerMapping;
*
* @author Dave Syer
* @author Andy Wilkinson
* @since 1.0.0
*/
@ConfigurationProperties(prefix = "endpoints.mappings")
public class RequestMappingEndpoint extends AbstractEndpoint<Map<String, Object>> implements ApplicationContextAware {

View File

@ -29,7 +29,7 @@ import org.springframework.util.Assert;
* {@link PublicMetrics} exposed from a {@link RichGaugeReader}.
*
* @author Johannes Edmeier
* @since 1.2
* @since 1.2.0
*/
public class RichGaugeReaderPublicMetrics implements PublicMetrics {

View File

@ -31,6 +31,7 @@ import org.springframework.context.ConfigurableApplicationContext;
* @author Dave Syer
* @author Christian Dupuis
* @author Andy Wilkinson
* @since 1.0.0
*/
@ConfigurationProperties(prefix = "endpoints.shutdown")
public class ShutdownEndpoint extends AbstractEndpoint<Map<String, Object>> implements ApplicationContextAware {

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2016 the original author or authors.
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -27,6 +27,7 @@ import org.springframework.util.Assert;
* {@link Endpoint} to expose {@link Trace} information.
*
* @author Dave Syer
* @since 1.0.0
*/
@ConfigurationProperties(prefix = "endpoints.trace")
public class TraceEndpoint extends AbstractEndpoint<List<Trace>> {

View File

@ -27,6 +27,7 @@ import org.springframework.jmx.export.annotation.ManagedAttribute;
*
* @author Christian Dupuis
* @author Andy Wilkinson
* @since 1.0.0
*/
public class DataEndpointMBean extends EndpointMBean {

View File

@ -31,6 +31,7 @@ import org.springframework.util.ObjectUtils;
* @author Andy Wilkinson
* @author Vedran Pavic
* @author Phillip Webb
* @since 1.0.0
* @see JmxEndpoint
* @see DataEndpointMBean
*/

View File

@ -62,6 +62,7 @@ import org.springframework.util.ObjectUtils;
* @author Christian Dupuis
* @author Andy Wilkinson
* @author Vedran Pavic
* @since 1.0.0
*/
public class EndpointMBeanExporter extends MBeanExporter implements SmartLifecycle, ApplicationContextAware {

View File

@ -27,6 +27,7 @@ import org.springframework.jmx.export.annotation.ManagedOperation;
*
* @author Christian Dupuis
* @author Andy Wilkinson
* @since 1.0.0
*/
public class ShutdownEndpointMBean extends EndpointMBean {

View File

@ -60,6 +60,7 @@ import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandl
* @author Christian Dupuis
* @author Dave Syer
* @author Madhura Bhave
* @since 1.5.0
*/
public abstract class AbstractEndpointHandlerMapping<E extends MvcEndpoint> extends RequestMappingHandlerMapping {

View File

@ -37,6 +37,7 @@ import org.springframework.web.servlet.HandlerMapping;
* @author Phillip Webb
* @author Christian Dupuis
* @author Dave Syer
* @since 1.0.0
*/
public class EndpointHandlerMapping extends AbstractEndpointHandlerMapping<MvcEndpoint> {

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2017 the original author or authors.
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -24,6 +24,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
*
* @author Dave Syer
* @author Andy Wilkinson
* @since 1.0.0
*/
public class EndpointMvcAdapter extends AbstractEndpointMvcAdapter<Endpoint<?>> {

View File

@ -35,6 +35,7 @@ import org.springframework.web.bind.annotation.ResponseStatus;
* @author Dave Syer
* @author Christian Dupuis
* @author Andy Wilkinson
* @since 1.0.0
*/
@ConfigurationProperties(prefix = "endpoints.env")
public class EnvironmentMvcEndpoint extends EndpointMvcAdapter implements EnvironmentAware {

View File

@ -42,6 +42,7 @@ import org.springframework.web.util.UrlPathHelper;
*
* @author Christian Dupuis
* @author Andy Wilkinson
* @since 1.0.0
*/
@ConfigurationProperties(prefix = "endpoints.jolokia", ignoreUnknownFields = false)
@HypermediaDisabled

View File

@ -32,6 +32,7 @@ import org.springframework.web.context.request.RequestContextHolder;
* because of the way the handler mappings are set up it will not be detected.
*
* @author Dave Syer
* @since 1.0.0
*/
@Controller
public class ManagementErrorEndpoint {

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2017 the original author or authors.
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -31,6 +31,7 @@ import org.springframework.web.bind.annotation.ResponseStatus;
* @author Dave Syer
* @author Andy Wilkinson
* @author Sergei Egorov
* @since 1.0.0
*/
@ConfigurationProperties(prefix = "endpoints.metrics")
public class MetricsMvcEndpoint extends EndpointMvcAdapter {

View File

@ -31,6 +31,7 @@ import org.springframework.http.ResponseEntity;
* {@link EndpointHandlerMapping}).
*
* @author Dave Syer
* @since 1.0.0
* @see NamedMvcEndpoint
*/
public interface MvcEndpoint {

View File

@ -37,6 +37,7 @@ import org.springframework.core.env.Environment;
* endpoints.
*
* @author Dave Syer
* @since 1.0.0
*/
public class MvcEndpoints implements ApplicationContextAware, InitializingBean {

View File

@ -33,7 +33,6 @@ import java.util.regex.PatternSyntaxException;
* @author Sergei Egorov
* @author Andy Wilkinson
* @author Dylian Bego
* @since 1.3.0
*/
abstract class NamePatternFilter<T> {

View File

@ -31,6 +31,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
* Adapter to expose {@link ShutdownEndpoint} as an {@link MvcEndpoint}.
*
* @author Dave Syer
* @since 1.0.0
*/
@ConfigurationProperties(prefix = "endpoints.shutdown")
public class ShutdownMvcEndpoint extends EndpointMvcAdapter {

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2014 the original author or authors.
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -21,6 +21,7 @@ package org.springframework.boot.actuate.health;
*
* @author Dave Syer
* @author Christian Dupuis
* @since 1.2.0
* @see Status#UP
*/
public class ApplicationHealthIndicator extends AbstractHealthIndicator {

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2014 the original author or authors.
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -20,6 +20,7 @@ package org.springframework.boot.actuate.health;
* Strategy interface used to provide an indication of application health.
*
* @author Dave Syer
* @since 1.0.0
* @see ApplicationHealthIndicator
*/
public interface HealthIndicator {

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2017 the original author or authors.
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -28,7 +28,7 @@ import org.springframework.util.Assert;
*
* @author Eddú Meléndez
* @author Stephane Nicoll
* @version 1.5.0
* @since 1.5.0
*/
public class LdapHealthIndicator extends AbstractHealthIndicator {

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2013 the original author or authors.
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -20,6 +20,7 @@ package org.springframework.boot.actuate.metrics;
* A service that can be used to increment, decrement and reset a named counter value.
*
* @author Dave Syer
* @since 1.0.0
*/
public interface CounterService {

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2013 the original author or authors.
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -26,6 +26,7 @@ package org.springframework.boot.actuate.metrics;
* be passed on to a monitoring system in its raw form.
*
* @author Dave Syer
* @since 1.0.0
*/
public interface GaugeService {

View File

@ -28,6 +28,7 @@ import org.springframework.util.ObjectUtils;
*
* @param <T> the value type
* @author Dave Syer
* @since 1.0.0
*/
public class Metric<T extends Number> {

View File

@ -52,6 +52,7 @@ import org.springframework.util.Assert;
* @author Dave Syer
* @author Jay Anderson
* @author Andy Wilkinson
* @since 1.0.0
*/
public class DropwizardMetricServices implements CounterService, GaugeService {

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2014 the original author or authors.
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -26,6 +26,7 @@ import org.springframework.boot.actuate.metrics.Metric;
* Composite implementation of {@link MetricReader}.
*
* @author Dave Syer
* @since 1.0.0
*/
public class CompositeMetricReader implements MetricReader {

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2013 the original author or authors.
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -22,6 +22,7 @@ import org.springframework.boot.actuate.metrics.Metric;
* A simple reader interface used to interrogate {@link Metric}s.
*
* @author Dave Syer
* @since 1.0.0
*/
public interface MetricReader {

View File

@ -52,6 +52,7 @@ import org.springframework.util.StringUtils;
*
* @author Dave Syer
* @author Andy Wilkinson
* @since 1.0.0
*/
public class MetricRegistryMetricReader implements MetricReader, MetricRegistryListener {

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2013 the original author or authors.
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -22,6 +22,7 @@ import org.springframework.boot.actuate.metrics.Metric;
* Interface for extracting metrics as a group whose name starts with a prefix.
*
* @author Dave Syer
* @since 1.0.0
*/
public interface PrefixMetricReader {

View File

@ -29,6 +29,7 @@ import org.springframework.boot.actuate.metrics.writer.Delta;
*
* @author Dave Syer
* @author Stephane Nicoll
* @since 1.0.0
*/
public class InMemoryMetricRepository implements MetricRepository {

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2013 the original author or authors.
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -23,6 +23,7 @@ import org.springframework.boot.actuate.metrics.writer.MetricWriter;
* Convenient combination of reader and writer concerns.
*
* @author Dave Syer
* @since 1.0.0
*/
public interface MetricRepository extends MetricReader, MetricWriter {

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2014 the original author or authors.
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -24,6 +24,7 @@ import org.springframework.boot.actuate.metrics.writer.PrefixMetricWriter;
* metrics with a common name prefix (their group name).
*
* @author Dave Syer
* @since 1.0.0
*/
public interface MultiMetricRepository extends PrefixMetricReader, PrefixMetricWriter {

View File

@ -39,6 +39,7 @@ import org.springframework.util.Assert;
* metrics).
*
* @author Dave Syer
* @since 1.0.0
*/
public class RedisMetricRepository implements MetricRepository {

View File

@ -38,6 +38,7 @@ import org.springframework.util.Assert;
* names are stored as a zset under "keys." + {@code [prefix]}.
*
* @author Dave Syer
* @since 1.0.0
*/
public class RedisMultiMetricRepository implements MultiMetricRepository {

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2017 the original author or authors.
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -30,6 +30,7 @@ import org.springframework.boot.actuate.metrics.writer.MetricWriter;
*
* @author Dave Syer
* @author Andy Wilkinson
* @since 1.0.0
*/
public class InMemoryRichGaugeRepository implements RichGaugeRepository {

View File

@ -28,6 +28,7 @@ import org.springframework.util.Assert;
* document</a>.
*
* @author Luke Taylor
* @since 1.0.0
*/
public final class RichGauge {

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2013 the original author or authors.
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -20,6 +20,7 @@ package org.springframework.boot.actuate.metrics.rich;
* A basic set of read operations for {@link RichGauge} instances.
*
* @author Dave Syer
* @since 1.0.0
*/
public interface RichGaugeReader {

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2013 the original author or authors.
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -22,6 +22,7 @@ import org.springframework.boot.actuate.metrics.writer.MetricWriter;
* Convenient combination of reader and writer concerns for {@link RichGauge} instances.
*
* @author Dave Syer
* @since 1.0.0
*/
public interface RichGaugeRepository extends RichGaugeReader, MetricWriter {

View File

@ -29,6 +29,7 @@ import java.util.concurrent.ConcurrentSkipListMap;
* @param <T> the type to store
* @author Dave Syer
* @author Andy Wilkinson
* @since 1.0.0
*/
public class SimpleInMemoryRepository<T> {

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2015 the original author or authors.
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -28,6 +28,7 @@ import org.springframework.boot.actuate.metrics.Metric;
* the delegates that have been registered.
*
* @author Dave Syer
* @since 1.0.0
*/
public class CompositeMetricWriter implements MetricWriter, Iterable<MetricWriter> {

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2016 the original author or authors.
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -24,6 +24,7 @@ import org.springframework.boot.actuate.metrics.CounterService;
* Default implementation of {@link CounterService}.
*
* @author Dave Syer
* @since 1.0.0
*/
public class DefaultCounterService implements CounterService {

View File

@ -25,6 +25,7 @@ import org.springframework.boot.actuate.metrics.Metric;
* Default implementation of {@link GaugeService}.
*
* @author Dave Syer
* @since 1.0.0
*/
public class DefaultGaugeService implements GaugeService {

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2015 the original author or authors.
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -25,6 +25,7 @@ import org.springframework.boot.actuate.metrics.Metric;
*
* @param <T> the value type
* @author Dave Syer
* @since 1.0.0
*/
public class Delta<T extends Number> extends Metric<T> {

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2015 the original author or authors.
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -25,6 +25,7 @@ import org.springframework.messaging.MessageChannel;
* carry an additional header "metricName" with the name of the metric in it.
*
* @author Dave Syer
* @since 1.0.0
* @see MetricWriterMessageHandler
*/
public class MessageChannelMetricWriter implements MetricWriter {

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2015 the original author or authors.
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -22,6 +22,7 @@ import org.springframework.boot.actuate.metrics.Metric;
* Basic strategy for write operations on {@link Metric} data.
*
* @author Dave Syer
* @since 1.0.0
* @see GaugeWriter
* @see CounterWriter
*/

View File

@ -29,6 +29,7 @@ import org.springframework.messaging.MessagingException;
* {@link MetricWriter}.
*
* @author Dave Syer
* @since 1.0.0
* @see MessageChannelMetricWriter
*/
public final class MetricWriterMessageHandler implements MessageHandler {

View File

@ -31,6 +31,7 @@ import org.springframework.util.ClassUtils;
*
* @author Dave Syer
* @author Vedran Pavic
* @since 1.0.0
*/
public class AuthenticationAuditListener extends AbstractAuthenticationAuditListener {

View File

@ -29,6 +29,7 @@ import org.springframework.security.access.event.AuthorizationFailureEvent;
*
* @author Dave Syer
* @author Vedran Pavic
* @since 1.0.0
*/
public class AuthorizationAuditListener extends AbstractAuthorizationAuditListener {

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2015 the original author or authors.
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -28,6 +28,7 @@ import java.util.Map;
*
* @author Dave Syer
* @author Olivier Bourgain
* @since 1.0.0
*/
public class InMemoryTraceRepository implements TraceRepository {

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2013 the original author or authors.
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -26,6 +26,7 @@ import org.springframework.util.Assert;
* information. Can be used for analyzing contextual information such as HTTP headers.
*
* @author Dave Syer
* @since 1.0.0
*/
public final class Trace {

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2015 the original author or authors.
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -23,6 +23,7 @@ import java.util.Map;
* A repository for {@link Trace}s.
*
* @author Dave Syer
* @since 1.0.0
*/
public interface TraceRepository {

View File

@ -54,6 +54,7 @@ import org.springframework.web.filter.OncePerRequestFilter;
* @author Andy Wilkinson
* @author Venil Noronha
* @author Madhura Bhave
* @since 1.0.0
*/
public class WebRequestTraceFilter extends OncePerRequestFilter implements Ordered {

View File

@ -47,6 +47,7 @@ import org.springframework.util.StringUtils;
* @author Phillip Webb
* @author Dave Syer
* @author Oliver Gierke
* @since 1.0.0
*/
public abstract class AutoConfigurationPackages {

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2015 the original author or authors.
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -26,6 +26,7 @@ import java.lang.annotation.Target;
* after other specified auto-configuration classes.
*
* @author Phillip Webb
* @since 1.0.0
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.TYPE })

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2015 the original author or authors.
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -26,6 +26,7 @@ import java.lang.annotation.Target;
* before other specified auto-configuration classes.
*
* @author Phillip Webb
* @since 1.0.0
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.TYPE })

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2017 the original author or authors.
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -66,6 +66,7 @@ import org.springframework.core.io.support.SpringFactoriesLoader;
*
* @author Phillip Webb
* @author Stephane Nicoll
* @since 1.0.0
* @see ConditionalOnBean
* @see ConditionalOnMissingBean
* @see ConditionalOnClass

View File

@ -29,6 +29,7 @@ import org.springframework.core.type.AnnotationMetadata;
* @author Dave Syer
* @author Phillip Webb
* @author Eddú Meléndez
* @since 1.0.0
* @deprecated as of 1.5 in favor of
* {@link org.springframework.boot.autoconfigure.context.MessageSourceAutoConfiguration}
*/

View File

@ -29,6 +29,7 @@ import org.springframework.core.type.AnnotationMetadata;
*
* @author Phillip Webb
* @author Dave Syer
* @since 1.0.0
* @deprecated as of 1.5 in favor of
* {@link org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration}
*/

View File

@ -44,7 +44,6 @@ import org.springframework.core.type.classreading.MetadataReaderFactory;
* {@link ConfigurationClassPostProcessor} and Spring Boot.
*
* @author Phillip Webb
* @since 1.4.0
*/
class SharedMetadataReaderFactoryContextInitializer
implements ApplicationContextInitializer<ConfigurableApplicationContext> {

View File

@ -33,7 +33,6 @@ import org.springframework.context.annotation.Configuration;
*
* @author Stephane Nicoll
* @author Josh Thornhill
* @since 1.2.0
*/
@Configuration
@ConditionalOnClass(EnableRabbit.class)

View File

@ -77,6 +77,7 @@ import org.springframework.util.ReflectionUtils;
* @author Josh Long
* @author Stephane Nicoll
* @author Gary Russell
* @since 1.0.0
*/
@Configuration
@ConditionalOnClass({ RabbitTemplate.class, Channel.class })

View File

@ -36,6 +36,7 @@ import org.springframework.util.StringUtils;
* @author Andy Wilkinson
* @author Josh Thornhill
* @author Gary Russell
* @since 1.0.0
*/
@ConfigurationProperties(prefix = "spring.rabbitmq")
public class RabbitProperties {

View File

@ -36,6 +36,7 @@ import org.springframework.context.annotation.EnableAspectJAutoProxy;
*
* @author Dave Syer
* @author Josh Long
* @since 1.0.0
* @see EnableAspectJAutoProxy
*/
@Configuration

View File

@ -42,6 +42,7 @@ import org.springframework.util.StringUtils;
* @author Dave Syer
* @author Andy Wilkinson
* @author Kazuki Shimizu
* @since 1.0.0
*/
public class BasicBatchConfigurer implements BatchConfigurer {

Some files were not shown because too many files have changed in this diff Show More