Add @FunctionalInterface on candidate interfaces
Issue: SPR-14432
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2014 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.
|
||||
@@ -33,6 +33,7 @@ import org.springframework.jms.config.JmsListenerEndpointRegistrar;
|
||||
* @see EnableJms
|
||||
* @see JmsListenerEndpointRegistrar
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface JmsListenerConfigurer {
|
||||
|
||||
/**
|
||||
|
||||
@@ -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.
|
||||
@@ -31,6 +31,7 @@ import javax.jms.Session;
|
||||
* @see JmsTemplate#browse(BrowserCallback)
|
||||
* @see JmsTemplate#browseSelected(String, BrowserCallback)
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface BrowserCallback<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.
|
||||
@@ -35,6 +35,7 @@ import javax.jms.Session;
|
||||
* @author Mark Pollack
|
||||
* @since 1.1
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface MessageCreator {
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2014 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.
|
||||
@@ -35,6 +35,7 @@ import javax.jms.Session;
|
||||
* @see JmsTemplate#execute(javax.jms.Destination, ProducerCallback)
|
||||
* @see JmsTemplate#execute(String, ProducerCallback)
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface ProducerCallback<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.
|
||||
@@ -30,6 +30,7 @@ import javax.jms.Session;
|
||||
* @since 1.1
|
||||
* @see JmsTemplate#execute(SessionCallback)
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface SessionCallback<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.
|
||||
@@ -41,6 +41,7 @@ import javax.jms.Session;
|
||||
* @see org.springframework.jms.listener.endpoint.JmsMessageEndpointManager
|
||||
* @see javax.jms.MessageListener
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface SessionAwareMessageListener<M extends Message> {
|
||||
|
||||
/**
|
||||
|
||||
@@ -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.
|
||||
@@ -38,6 +38,7 @@ import javax.jms.Session;
|
||||
* @see org.springframework.jms.support.destination.DynamicDestinationResolver
|
||||
* @see org.springframework.jms.support.destination.JndiDestinationResolver
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface DestinationResolver {
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user