Add @FunctionalInterface on candidate interfaces
Issue: SPR-14432
This commit is contained in:
@@ -30,6 +30,7 @@ import org.springframework.dao.DataAccessException;
|
||||
* @author Juergen Hoeller
|
||||
* @since 2.0
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface PersistenceExceptionTranslator {
|
||||
|
||||
/**
|
||||
|
||||
@@ -40,6 +40,7 @@ import org.springframework.dao.DataAccessException;
|
||||
* @see CciTemplate#execute(javax.resource.cci.InteractionSpec, javax.resource.cci.Record)
|
||||
* @see CciTemplate#execute(javax.resource.cci.InteractionSpec, RecordCreator, RecordExtractor)
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface ConnectionCallback<T> {
|
||||
|
||||
/**
|
||||
|
||||
@@ -41,6 +41,7 @@ import org.springframework.dao.DataAccessException;
|
||||
* @see CciTemplate#execute(javax.resource.cci.InteractionSpec, javax.resource.cci.Record)
|
||||
* @see CciTemplate#execute(javax.resource.cci.InteractionSpec, RecordCreator, RecordExtractor)
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface InteractionCallback<T> {
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
* Copyright 2002-2016 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.
|
||||
@@ -45,6 +45,7 @@ import org.springframework.dao.DataAccessException;
|
||||
* @see CciTemplate#createMappedRecord(String)
|
||||
* @see CciTemplate#setOutputRecordCreator(RecordCreator)
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface RecordCreator {
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
* Copyright 2002-2016 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.
|
||||
@@ -42,6 +42,7 @@ import org.springframework.dao.DataAccessException;
|
||||
* @see CciTemplate#execute(javax.resource.cci.InteractionSpec, RecordCreator, RecordExtractor)
|
||||
* @see javax.resource.cci.ResultSet
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface RecordExtractor<T> {
|
||||
|
||||
/**
|
||||
|
||||
@@ -630,6 +630,7 @@ public abstract class TransactionAspectSupport implements BeanFactoryAware, Init
|
||||
* Simple callback interface for proceeding with the target invocation.
|
||||
* Concrete interceptors/aspects adapt this to their invocation mechanism.
|
||||
*/
|
||||
@FunctionalInterface
|
||||
protected interface InvocationCallback {
|
||||
|
||||
Object proceedWithInvocation() throws Throwable;
|
||||
|
||||
@@ -32,6 +32,7 @@ import org.springframework.transaction.TransactionStatus;
|
||||
* @see TransactionTemplate
|
||||
* @see CallbackPreferringPlatformTransactionManager
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface TransactionCallback<T> {
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user