Commit 3d52c86a authored by Eddú Meléndez's avatar Eddú Meléndez Committed by Andy Wilkinson

Annotate interfaces with @FunctionaInterface

Closes gh-6857
parent 6d70c061
...@@ -27,6 +27,7 @@ import org.springframework.cache.CacheManager; ...@@ -27,6 +27,7 @@ import org.springframework.cache.CacheManager;
* @author Phillip Webb * @author Phillip Webb
* @since 1.3.0 * @since 1.3.0
*/ */
@FunctionalInterface
public interface CacheStatisticsProvider<C extends Cache> { public interface CacheStatisticsProvider<C extends Cache> {
/** /**
......
...@@ -29,6 +29,7 @@ import org.springframework.boot.actuate.metrics.Metric; ...@@ -29,6 +29,7 @@ import org.springframework.boot.actuate.metrics.Metric;
* @author Dave Syer * @author Dave Syer
* @see SystemPublicMetrics SystemPublicMetrics for an example implementation * @see SystemPublicMetrics SystemPublicMetrics for an example implementation
*/ */
@FunctionalInterface
public interface PublicMetrics { public interface PublicMetrics {
/** /**
......
...@@ -22,6 +22,7 @@ package org.springframework.boot.actuate.endpoint.mvc; ...@@ -22,6 +22,7 @@ package org.springframework.boot.actuate.endpoint.mvc;
* @author Dave Syer * @author Dave Syer
* @since 1.2.0 * @since 1.2.0
*/ */
@FunctionalInterface
public interface EndpointHandlerMappingCustomizer { public interface EndpointHandlerMappingCustomizer {
/** /**
......
...@@ -22,6 +22,7 @@ package org.springframework.boot.actuate.endpoint.mvc; ...@@ -22,6 +22,7 @@ package org.springframework.boot.actuate.endpoint.mvc;
* @author Phillip Webb * @author Phillip Webb
* @since 1.3.0 * @since 1.3.0
*/ */
@FunctionalInterface
public interface ManagementServletContext { public interface ManagementServletContext {
/** /**
......
...@@ -34,6 +34,7 @@ import java.util.Map; ...@@ -34,6 +34,7 @@ import java.util.Map;
* @author Christian Dupuis * @author Christian Dupuis
* @since 1.1.0 * @since 1.1.0
*/ */
@FunctionalInterface
public interface HealthAggregator { public interface HealthAggregator {
/** /**
......
...@@ -22,6 +22,7 @@ package org.springframework.boot.actuate.health; ...@@ -22,6 +22,7 @@ package org.springframework.boot.actuate.health;
* @author Dave Syer * @author Dave Syer
* @see ApplicationHealthIndicator * @see ApplicationHealthIndicator
*/ */
@FunctionalInterface
public interface HealthIndicator { public interface HealthIndicator {
/** /**
......
...@@ -22,6 +22,7 @@ package org.springframework.boot.actuate.info; ...@@ -22,6 +22,7 @@ package org.springframework.boot.actuate.info;
* @author Stephane Nicoll * @author Stephane Nicoll
* @since 1.4.0 * @since 1.4.0
*/ */
@FunctionalInterface
public interface InfoContributor { public interface InfoContributor {
/** /**
......
...@@ -27,6 +27,7 @@ package org.springframework.boot.actuate.metrics; ...@@ -27,6 +27,7 @@ package org.springframework.boot.actuate.metrics;
* *
* @author Dave Syer * @author Dave Syer
*/ */
@FunctionalInterface
public interface GaugeService { public interface GaugeService {
/** /**
......
...@@ -27,6 +27,7 @@ package org.springframework.boot.actuate.metrics.export; ...@@ -27,6 +27,7 @@ package org.springframework.boot.actuate.metrics.export;
* @author Dave Syer * @author Dave Syer
* @since 1.3.0 * @since 1.3.0
*/ */
@FunctionalInterface
public interface Exporter { public interface Exporter {
/** /**
......
...@@ -22,6 +22,7 @@ package org.springframework.boot.actuate.metrics.opentsdb; ...@@ -22,6 +22,7 @@ package org.springframework.boot.actuate.metrics.opentsdb;
* @author Dave Syer * @author Dave Syer
* @since 1.3.0 * @since 1.3.0
*/ */
@FunctionalInterface
public interface OpenTsdbNamingStrategy { public interface OpenTsdbNamingStrategy {
/** /**
......
...@@ -23,6 +23,7 @@ import org.springframework.boot.actuate.metrics.Metric; ...@@ -23,6 +23,7 @@ import org.springframework.boot.actuate.metrics.Metric;
* *
* @author Dave Syer * @author Dave Syer
*/ */
@FunctionalInterface
public interface PrefixMetricReader { public interface PrefixMetricReader {
/** /**
......
...@@ -24,6 +24,7 @@ import org.springframework.boot.actuate.metrics.Metric; ...@@ -24,6 +24,7 @@ import org.springframework.boot.actuate.metrics.Metric;
* @author Dave Syer * @author Dave Syer
* @since 1.3.0 * @since 1.3.0
*/ */
@FunctionalInterface
public interface GaugeWriter { public interface GaugeWriter {
/** /**
......
...@@ -26,6 +26,7 @@ import org.springframework.cache.CacheManager; ...@@ -26,6 +26,7 @@ import org.springframework.cache.CacheManager;
* @author Stephane Nicoll * @author Stephane Nicoll
* @since 1.3.3 * @since 1.3.3
*/ */
@FunctionalInterface
public interface CacheManagerCustomizer<T extends CacheManager> { public interface CacheManagerCustomizer<T extends CacheManager> {
/** /**
......
...@@ -25,6 +25,7 @@ import javax.cache.CacheManager; ...@@ -25,6 +25,7 @@ import javax.cache.CacheManager;
* @author Stephane Nicoll * @author Stephane Nicoll
* @since 1.3.0 * @since 1.3.0
*/ */
@FunctionalInterface
public interface JCacheManagerCustomizer { public interface JCacheManagerCustomizer {
/** /**
......
...@@ -25,6 +25,7 @@ import org.flywaydb.core.Flyway; ...@@ -25,6 +25,7 @@ import org.flywaydb.core.Flyway;
* @author Andreas Ahlenstorf * @author Andreas Ahlenstorf
* @author Phillip Webb * @author Phillip Webb
*/ */
@FunctionalInterface
public interface FlywayMigrationStrategy { public interface FlywayMigrationStrategy {
/** /**
......
...@@ -28,6 +28,7 @@ import org.springframework.http.converter.json.Jackson2ObjectMapperBuilder; ...@@ -28,6 +28,7 @@ import org.springframework.http.converter.json.Jackson2ObjectMapperBuilder;
* @author Grzegorz Poznachowski * @author Grzegorz Poznachowski
* @since 1.4.0 * @since 1.4.0
*/ */
@FunctionalInterface
public interface Jackson2ObjectMapperBuilderCustomizer { public interface Jackson2ObjectMapperBuilderCustomizer {
/** /**
......
...@@ -24,6 +24,7 @@ import javax.sql.DataSource; ...@@ -24,6 +24,7 @@ import javax.sql.DataSource;
* @author Stephane Nicoll * @author Stephane Nicoll
* @since 1.2.0 * @since 1.2.0
*/ */
@FunctionalInterface
public interface DataSourcePoolMetadataProvider { public interface DataSourcePoolMetadataProvider {
/** /**
......
...@@ -25,6 +25,7 @@ import org.glassfish.jersey.server.ResourceConfig; ...@@ -25,6 +25,7 @@ import org.glassfish.jersey.server.ResourceConfig;
* @author Eddú Meléndez * @author Eddú Meléndez
* @since 1.4.0 * @since 1.4.0
*/ */
@FunctionalInterface
public interface ResourceConfigCustomizer { public interface ResourceConfigCustomizer {
/** /**
......
...@@ -29,6 +29,7 @@ import org.apache.activemq.artemis.jms.server.embedded.EmbeddedJMS; ...@@ -29,6 +29,7 @@ import org.apache.activemq.artemis.jms.server.embedded.EmbeddedJMS;
* @since 1.3.0 * @since 1.3.0
* @see ArtemisAutoConfiguration * @see ArtemisAutoConfiguration
*/ */
@FunctionalInterface
public interface ArtemisConfigurationCustomizer { public interface ArtemisConfigurationCustomizer {
/** /**
......
...@@ -28,6 +28,7 @@ import org.springframework.security.core.GrantedAuthority; ...@@ -28,6 +28,7 @@ import org.springframework.security.core.GrantedAuthority;
* @author Dave Syer * @author Dave Syer
* @since 1.3.0 * @since 1.3.0
*/ */
@FunctionalInterface
public interface AuthoritiesExtractor { public interface AuthoritiesExtractor {
/** /**
......
...@@ -25,6 +25,7 @@ import org.springframework.security.oauth2.provider.token.store.JwtAccessTokenCo ...@@ -25,6 +25,7 @@ import org.springframework.security.oauth2.provider.token.store.JwtAccessTokenCo
* @author Dave Syer * @author Dave Syer
* @since 1.3.0 * @since 1.3.0
*/ */
@FunctionalInterface
public interface JwtAccessTokenConverterConfigurer { public interface JwtAccessTokenConverterConfigurer {
/** /**
......
...@@ -25,6 +25,7 @@ import java.util.Map; ...@@ -25,6 +25,7 @@ import java.util.Map;
* @author Phillip Webb * @author Phillip Webb
* @since 1.4.0 * @since 1.4.0
*/ */
@FunctionalInterface
public interface PrincipalExtractor { public interface PrincipalExtractor {
/** /**
......
...@@ -29,6 +29,7 @@ import org.springframework.security.oauth2.client.OAuth2RestTemplate; ...@@ -29,6 +29,7 @@ import org.springframework.security.oauth2.client.OAuth2RestTemplate;
* @author Dave Syer * @author Dave Syer
* @since 1.3.0 * @since 1.3.0
*/ */
@FunctionalInterface
public interface UserInfoRestTemplateCustomizer { public interface UserInfoRestTemplateCustomizer {
/** /**
......
...@@ -26,6 +26,7 @@ import org.springframework.core.io.ResourceLoader; ...@@ -26,6 +26,7 @@ import org.springframework.core.io.ResourceLoader;
* @author Andy Wilkinson * @author Andy Wilkinson
* @since 1.1.0 * @since 1.1.0
*/ */
@FunctionalInterface
public interface TemplateAvailabilityProvider { public interface TemplateAvailabilityProvider {
/** /**
......
...@@ -24,6 +24,7 @@ import org.springframework.stereotype.Controller; ...@@ -24,6 +24,7 @@ import org.springframework.stereotype.Controller;
* *
* @author Phillip Webb * @author Phillip Webb
*/ */
@FunctionalInterface
public interface ErrorController { public interface ErrorController {
/** /**
......
...@@ -29,6 +29,7 @@ import org.springframework.web.servlet.ModelAndView; ...@@ -29,6 +29,7 @@ import org.springframework.web.servlet.ModelAndView;
* @author Phillip Webb * @author Phillip Webb
* @since 1.4.0 * @since 1.4.0
*/ */
@FunctionalInterface
public interface ErrorViewResolver { public interface ErrorViewResolver {
/** /**
......
...@@ -25,6 +25,7 @@ import java.util.ServiceLoader; ...@@ -25,6 +25,7 @@ import java.util.ServiceLoader;
* *
* @author Dave Syer * @author Dave Syer
*/ */
@FunctionalInterface
public interface CommandFactory { public interface CommandFactory {
/** /**
......
...@@ -26,6 +26,7 @@ import java.util.List; ...@@ -26,6 +26,7 @@ import java.util.List;
* @author Andy Wilkinson * @author Andy Wilkinson
* @since 1.2.0 * @since 1.2.0
*/ */
@FunctionalInterface
interface DependencyResolver { interface DependencyResolver {
/** /**
......
...@@ -24,6 +24,7 @@ import org.codehaus.groovy.transform.ASTTransformation; ...@@ -24,6 +24,7 @@ import org.codehaus.groovy.transform.ASTTransformation;
* *
* @author Dave Syer * @author Dave Syer
*/ */
@FunctionalInterface
public interface SpringBootAstTransformation extends ASTTransformation { public interface SpringBootAstTransformation extends ASTTransformation {
} }
...@@ -21,6 +21,7 @@ package org.springframework.boot.cli.compiler.grape; ...@@ -21,6 +21,7 @@ package org.springframework.boot.cli.compiler.grape;
* *
* @author Andy Wilkinson * @author Andy Wilkinson
*/ */
@FunctionalInterface
interface ProgressReporter { interface ProgressReporter {
/** /**
......
...@@ -25,6 +25,7 @@ import org.eclipse.aether.RepositorySystem; ...@@ -25,6 +25,7 @@ import org.eclipse.aether.RepositorySystem;
* *
* @author Andy Wilkinson * @author Andy Wilkinson
*/ */
@FunctionalInterface
public interface RepositorySystemSessionAutoConfiguration { public interface RepositorySystemSessionAutoConfiguration {
/** /**
......
...@@ -27,6 +27,7 @@ import org.springframework.boot.devtools.filewatch.ChangedFile; ...@@ -27,6 +27,7 @@ import org.springframework.boot.devtools.filewatch.ChangedFile;
* @since 1.3.0 * @since 1.3.0
* @see PatternClassPathRestartStrategy * @see PatternClassPathRestartStrategy
*/ */
@FunctionalInterface
public interface ClassPathRestartStrategy { public interface ClassPathRestartStrategy {
/** /**
......
...@@ -25,6 +25,7 @@ import java.util.Set; ...@@ -25,6 +25,7 @@ import java.util.Set;
* @author Phillip Webb * @author Phillip Webb
* @since 1.3.0 * @since 1.3.0
*/ */
@FunctionalInterface
public interface FileChangeListener { public interface FileChangeListener {
/** /**
......
...@@ -22,6 +22,7 @@ package org.springframework.boot.devtools.filewatch; ...@@ -22,6 +22,7 @@ package org.springframework.boot.devtools.filewatch;
* @author Phillip Webb * @author Phillip Webb
* @since 1.3.0 * @since 1.3.0
*/ */
@FunctionalInterface
public interface FileSystemWatcherFactory { public interface FileSystemWatcherFactory {
/** /**
......
...@@ -24,6 +24,7 @@ import org.springframework.http.server.ServerHttpRequest; ...@@ -24,6 +24,7 @@ import org.springframework.http.server.ServerHttpRequest;
* @author Phillip Webb * @author Phillip Webb
* @since 1.3.0 * @since 1.3.0
*/ */
@FunctionalInterface
public interface AccessManager { public interface AccessManager {
/** /**
......
...@@ -27,6 +27,7 @@ import org.springframework.http.server.ServerHttpResponse; ...@@ -27,6 +27,7 @@ import org.springframework.http.server.ServerHttpResponse;
* @author Phillip Webb * @author Phillip Webb
* @since 1.3.0 * @since 1.3.0
*/ */
@FunctionalInterface
public interface Handler { public interface Handler {
/** /**
......
...@@ -25,6 +25,7 @@ import org.springframework.http.server.ServerHttpRequest; ...@@ -25,6 +25,7 @@ import org.springframework.http.server.ServerHttpRequest;
* @author Phillip Webb * @author Phillip Webb
* @since 1.3.0 * @since 1.3.0
*/ */
@FunctionalInterface
public interface HandlerMapper { public interface HandlerMapper {
/** /**
......
...@@ -22,6 +22,7 @@ package org.springframework.boot.devtools.restart; ...@@ -22,6 +22,7 @@ package org.springframework.boot.devtools.restart;
* @author Phillip Webb * @author Phillip Webb
* @since 1.3.0 * @since 1.3.0
*/ */
@FunctionalInterface
public interface FailureHandler { public interface FailureHandler {
/** /**
......
...@@ -25,6 +25,7 @@ import java.net.URL; ...@@ -25,6 +25,7 @@ import java.net.URL;
* @since 1.3.0 * @since 1.3.0
* @see DefaultRestartInitializer * @see DefaultRestartInitializer
*/ */
@FunctionalInterface
public interface RestartInitializer { public interface RestartInitializer {
/** /**
......
...@@ -22,6 +22,7 @@ package org.springframework.boot.devtools.restart; ...@@ -22,6 +22,7 @@ package org.springframework.boot.devtools.restart;
* @author Andy Wilkinson * @author Andy Wilkinson
* @since 1.3.0 * @since 1.3.0
*/ */
@FunctionalInterface
public interface RestartListener { public interface RestartListener {
/** /**
......
...@@ -25,6 +25,7 @@ package org.springframework.boot.devtools.restart.classloader; ...@@ -25,6 +25,7 @@ package org.springframework.boot.devtools.restart.classloader;
* @since 1.3.0 * @since 1.3.0
* @see ClassLoaderFile * @see ClassLoaderFile
*/ */
@FunctionalInterface
public interface ClassLoaderFileRepository { public interface ClassLoaderFileRepository {
/** /**
......
...@@ -26,6 +26,7 @@ import java.net.URL; ...@@ -26,6 +26,7 @@ import java.net.URL;
* @since 1.3.0 * @since 1.3.0
* @see DefaultSourceFolderUrlFilter * @see DefaultSourceFolderUrlFilter
*/ */
@FunctionalInterface
public interface SourceFolderUrlFilter { public interface SourceFolderUrlFilter {
/** /**
......
...@@ -25,6 +25,7 @@ import java.nio.channels.WritableByteChannel; ...@@ -25,6 +25,7 @@ import java.nio.channels.WritableByteChannel;
* @author Phillip Webb * @author Phillip Webb
* @since 1.3.0 * @since 1.3.0
*/ */
@FunctionalInterface
public interface TunnelConnection { public interface TunnelConnection {
/** /**
......
...@@ -23,6 +23,7 @@ package org.springframework.boot.devtools.tunnel.server; ...@@ -23,6 +23,7 @@ package org.springframework.boot.devtools.tunnel.server;
* @author Phillip Webb * @author Phillip Webb
* @since 1.3.0 * @since 1.3.0
*/ */
@FunctionalInterface
public interface PortProvider { public interface PortProvider {
/** /**
......
...@@ -25,6 +25,7 @@ import java.nio.channels.ByteChannel; ...@@ -25,6 +25,7 @@ import java.nio.channels.ByteChannel;
* @author Phillip Webb * @author Phillip Webb
* @since 1.3.0 * @since 1.3.0
*/ */
@FunctionalInterface
public interface TargetServerConnection { public interface TargetServerConnection {
/** /**
......
...@@ -29,6 +29,7 @@ import org.springframework.restdocs.mockmvc.MockMvcRestDocumentationConfigurer; ...@@ -29,6 +29,7 @@ import org.springframework.restdocs.mockmvc.MockMvcRestDocumentationConfigurer;
* @author Andy Wilkinson * @author Andy Wilkinson
* @since 1.4.0 * @since 1.4.0
*/ */
@FunctionalInterface
public interface RestDocsMockMvcConfigurationCustomizer { public interface RestDocsMockMvcConfigurationCustomizer {
/** /**
......
...@@ -28,6 +28,7 @@ import org.springframework.test.web.servlet.setup.ConfigurableMockMvcBuilder; ...@@ -28,6 +28,7 @@ import org.springframework.test.web.servlet.setup.ConfigurableMockMvcBuilder;
* @since 1.4.0 * @since 1.4.0
* @see MockMvcAutoConfiguration * @see MockMvcAutoConfiguration
*/ */
@FunctionalInterface
public interface MockMvcBuilderCustomizer { public interface MockMvcBuilderCustomizer {
/** /**
......
...@@ -30,6 +30,7 @@ import org.springframework.boot.configurationprocessor.fieldvalues.javac.JavaCom ...@@ -30,6 +30,7 @@ import org.springframework.boot.configurationprocessor.fieldvalues.javac.JavaCom
* @since 1.1.2 * @since 1.1.2
* @see JavaCompilerFieldValuesParser * @see JavaCompilerFieldValuesParser
*/ */
@FunctionalInterface
public interface FieldValuesParser { public interface FieldValuesParser {
/** /**
......
...@@ -22,6 +22,7 @@ package org.springframework.boot.configurationprocessor.fieldvalues.javac; ...@@ -22,6 +22,7 @@ package org.springframework.boot.configurationprocessor.fieldvalues.javac;
* @author Phillip Webb * @author Phillip Webb
* @since 1.2.0 * @since 1.2.0
*/ */
@FunctionalInterface
interface TreeVisitor { interface TreeVisitor {
void visitVariable(VariableTree variable) throws Exception; void visitVariable(VariableTree variable) throws Exception;
......
...@@ -24,6 +24,7 @@ import org.gradle.api.Project; ...@@ -24,6 +24,7 @@ import org.gradle.api.Project;
* *
* @author Phillip Webb * @author Phillip Webb
*/ */
@FunctionalInterface
public interface PluginFeatures { public interface PluginFeatures {
/** /**
......
...@@ -22,6 +22,7 @@ package org.springframework.boot.loader.tools; ...@@ -22,6 +22,7 @@ package org.springframework.boot.loader.tools;
* @author Phillip Webb * @author Phillip Webb
* @since 1.3.0 * @since 1.3.0
*/ */
@FunctionalInterface
public interface LaunchScript { public interface LaunchScript {
/** /**
......
...@@ -23,6 +23,7 @@ import java.io.IOException; ...@@ -23,6 +23,7 @@ import java.io.IOException;
* *
* @author Phillip Webb * @author Phillip Webb
*/ */
@FunctionalInterface
public interface Libraries { public interface Libraries {
/** /**
......
...@@ -24,6 +24,7 @@ import java.io.IOException; ...@@ -24,6 +24,7 @@ import java.io.IOException;
* *
* @author Phillip Webb * @author Phillip Webb
*/ */
@FunctionalInterface
public interface LibraryCallback { public interface LibraryCallback {
/** /**
......
...@@ -21,6 +21,7 @@ package org.springframework.boot.loader.jar; ...@@ -21,6 +21,7 @@ package org.springframework.boot.loader.jar;
* *
* @author Phillip Webb * @author Phillip Webb
*/ */
@FunctionalInterface
interface JarEntryFilter { interface JarEntryFilter {
/** /**
......
...@@ -29,6 +29,7 @@ import org.springframework.core.annotation.Order; ...@@ -29,6 +29,7 @@ import org.springframework.core.annotation.Order;
* @since 1.3.0 * @since 1.3.0
* @see CommandLineRunner * @see CommandLineRunner
*/ */
@FunctionalInterface
public interface ApplicationRunner { public interface ApplicationRunner {
/** /**
......
...@@ -28,6 +28,7 @@ import org.springframework.core.env.Environment; ...@@ -28,6 +28,7 @@ import org.springframework.core.env.Environment;
* @author Jeremy Rickard * @author Jeremy Rickard
* @since 1.2.0 * @since 1.2.0
*/ */
@FunctionalInterface
public interface Banner { public interface Banner {
/** /**
......
...@@ -31,6 +31,7 @@ import org.springframework.core.annotation.Order; ...@@ -31,6 +31,7 @@ import org.springframework.core.annotation.Order;
* @author Dave Syer * @author Dave Syer
* @see ApplicationRunner * @see ApplicationRunner
*/ */
@FunctionalInterface
public interface CommandLineRunner { public interface CommandLineRunner {
/** /**
......
...@@ -23,6 +23,7 @@ package org.springframework.boot; ...@@ -23,6 +23,7 @@ package org.springframework.boot;
* @author Phillip Webb * @author Phillip Webb
* @since 1.3.2 * @since 1.3.2
*/ */
@FunctionalInterface
public interface ExitCodeExceptionMapper { public interface ExitCodeExceptionMapper {
/** /**
......
...@@ -25,6 +25,7 @@ package org.springframework.boot; ...@@ -25,6 +25,7 @@ package org.springframework.boot;
* @see SpringApplication#exit(org.springframework.context.ApplicationContext, * @see SpringApplication#exit(org.springframework.context.ApplicationContext,
* ExitCodeGenerator...) * ExitCodeGenerator...)
*/ */
@FunctionalInterface
public interface ExitCodeGenerator { public interface ExitCodeGenerator {
/** /**
......
...@@ -22,6 +22,7 @@ package org.springframework.boot.bind; ...@@ -22,6 +22,7 @@ package org.springframework.boot.bind;
* @author Phillip Webb * @author Phillip Webb
* @since 1.2.0 * @since 1.2.0
*/ */
@FunctionalInterface
interface PropertyNamePatternsMatcher { interface PropertyNamePatternsMatcher {
PropertyNamePatternsMatcher ALL = new PropertyNamePatternsMatcher() { PropertyNamePatternsMatcher ALL = new PropertyNamePatternsMatcher() {
......
...@@ -32,6 +32,7 @@ import org.springframework.beans.factory.config.BeanPostProcessor; ...@@ -32,6 +32,7 @@ import org.springframework.beans.factory.config.BeanPostProcessor;
* @author Dave Syer * @author Dave Syer
* @see EmbeddedServletContainerCustomizerBeanPostProcessor * @see EmbeddedServletContainerCustomizerBeanPostProcessor
*/ */
@FunctionalInterface
public interface EmbeddedServletContainerCustomizer { public interface EmbeddedServletContainerCustomizer {
/** /**
......
...@@ -33,6 +33,7 @@ import org.springframework.boot.web.servlet.ServletContextInitializer; ...@@ -33,6 +33,7 @@ import org.springframework.boot.web.servlet.ServletContextInitializer;
* @see JettyEmbeddedServletContainerFactory * @see JettyEmbeddedServletContainerFactory
* @see TomcatEmbeddedServletContainerFactory * @see TomcatEmbeddedServletContainerFactory
*/ */
@FunctionalInterface
public interface EmbeddedServletContainerFactory { public interface EmbeddedServletContainerFactory {
/** /**
......
...@@ -24,6 +24,7 @@ import org.eclipse.jetty.server.Server; ...@@ -24,6 +24,7 @@ import org.eclipse.jetty.server.Server;
* @author Dave Syer * @author Dave Syer
* @see JettyEmbeddedServletContainerFactory * @see JettyEmbeddedServletContainerFactory
*/ */
@FunctionalInterface
public interface JettyServerCustomizer { public interface JettyServerCustomizer {
/** /**
......
...@@ -24,6 +24,7 @@ import org.apache.catalina.connector.Connector; ...@@ -24,6 +24,7 @@ import org.apache.catalina.connector.Connector;
* @author Dave Syer * @author Dave Syer
* @see TomcatEmbeddedServletContainerFactory * @see TomcatEmbeddedServletContainerFactory
*/ */
@FunctionalInterface
public interface TomcatConnectorCustomizer { public interface TomcatConnectorCustomizer {
/** /**
......
...@@ -24,6 +24,7 @@ import org.apache.catalina.Context; ...@@ -24,6 +24,7 @@ import org.apache.catalina.Context;
* @author Dave Syer * @author Dave Syer
* @see TomcatEmbeddedServletContainerFactory * @see TomcatEmbeddedServletContainerFactory
*/ */
@FunctionalInterface
public interface TomcatContextCustomizer { public interface TomcatContextCustomizer {
/** /**
......
...@@ -25,6 +25,7 @@ import io.undertow.Undertow.Builder; ...@@ -25,6 +25,7 @@ import io.undertow.Undertow.Builder;
* @since 1.2.0 * @since 1.2.0
* @see UndertowEmbeddedServletContainerFactory * @see UndertowEmbeddedServletContainerFactory
*/ */
@FunctionalInterface
public interface UndertowBuilderCustomizer { public interface UndertowBuilderCustomizer {
/** /**
......
...@@ -25,6 +25,7 @@ import io.undertow.servlet.api.DeploymentInfo; ...@@ -25,6 +25,7 @@ import io.undertow.servlet.api.DeploymentInfo;
* @since 1.2.0 * @since 1.2.0
* @see UndertowEmbeddedServletContainerFactory * @see UndertowEmbeddedServletContainerFactory
*/ */
@FunctionalInterface
public interface UndertowDeploymentInfoCustomizer { public interface UndertowDeploymentInfoCustomizer {
/** /**
......
...@@ -22,6 +22,7 @@ package org.springframework.boot.diagnostics; ...@@ -22,6 +22,7 @@ package org.springframework.boot.diagnostics;
* @author Andy Wilkinson * @author Andy Wilkinson
* @since 1.4.0 * @since 1.4.0
*/ */
@FunctionalInterface
public interface FailureAnalysisReporter { public interface FailureAnalysisReporter {
/** /**
......
...@@ -23,6 +23,7 @@ package org.springframework.boot.diagnostics; ...@@ -23,6 +23,7 @@ package org.springframework.boot.diagnostics;
* @author Andy Wilkinson * @author Andy Wilkinson
* @since 1.4.0 * @since 1.4.0
*/ */
@FunctionalInterface
public interface FailureAnalyzer { public interface FailureAnalyzer {
/** /**
......
...@@ -37,6 +37,7 @@ import org.springframework.core.env.Environment; ...@@ -37,6 +37,7 @@ import org.springframework.core.env.Environment;
* @author Stephane Nicoll * @author Stephane Nicoll
* @since 1.3.0 * @since 1.3.0
*/ */
@FunctionalInterface
public interface EnvironmentPostProcessor { public interface EnvironmentPostProcessor {
/** /**
......
...@@ -27,6 +27,7 @@ import javax.transaction.TransactionManager; ...@@ -27,6 +27,7 @@ import javax.transaction.TransactionManager;
* @author Phillip Webb * @author Phillip Webb
* @since 1.2.0 * @since 1.2.0
*/ */
@FunctionalInterface
public interface XAConnectionFactoryWrapper { public interface XAConnectionFactoryWrapper {
/** /**
......
...@@ -27,6 +27,7 @@ import javax.transaction.TransactionManager; ...@@ -27,6 +27,7 @@ import javax.transaction.TransactionManager;
* @author Phillip Webb * @author Phillip Webb
* @since 1.2.0 * @since 1.2.0
*/ */
@FunctionalInterface
public interface XADataSourceWrapper { public interface XADataSourceWrapper {
/** /**
......
...@@ -25,6 +25,7 @@ import org.springframework.web.client.RestTemplate; ...@@ -25,6 +25,7 @@ import org.springframework.web.client.RestTemplate;
* @since 1.4.0 * @since 1.4.0
* @see RestTemplateBuilder * @see RestTemplateBuilder
*/ */
@FunctionalInterface
public interface RestTemplateCustomizer { public interface RestTemplateCustomizer {
/** /**
......
...@@ -22,6 +22,7 @@ package org.springframework.boot.web.servlet; ...@@ -22,6 +22,7 @@ package org.springframework.boot.web.servlet;
* @author Phillip Webb * @author Phillip Webb
* @since 1.4.0 * @since 1.4.0
*/ */
@FunctionalInterface
public interface ErrorPageRegistrar { public interface ErrorPageRegistrar {
/** /**
......
...@@ -22,6 +22,7 @@ package org.springframework.boot.web.servlet; ...@@ -22,6 +22,7 @@ package org.springframework.boot.web.servlet;
* @author Phillip Webb * @author Phillip Webb
* @since 1.4.0 * @since 1.4.0
*/ */
@FunctionalInterface
public interface ErrorPageRegistry { public interface ErrorPageRegistry {
/** /**
......
...@@ -38,6 +38,7 @@ import org.springframework.web.WebApplicationInitializer; ...@@ -38,6 +38,7 @@ import org.springframework.web.WebApplicationInitializer;
* @since 1.4.0 * @since 1.4.0
* @see WebApplicationInitializer * @see WebApplicationInitializer
*/ */
@FunctionalInterface
public interface ServletContextInitializer { public interface ServletContextInitializer {
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment