Merge pull request #90 from ghillert/AMQP-302
This commit is contained in:
@@ -22,7 +22,12 @@ allprojects {
|
||||
}
|
||||
|
||||
ext {
|
||||
expandPlaceholders='**/quick-tour.xml'
|
||||
expandPlaceholders = '**/quick-tour.xml'
|
||||
javadocLinks = [
|
||||
"http://docs.oracle.com/javase/6/docs/api",
|
||||
"http://docs.oracle.com/javaee/6/api",
|
||||
"http://static.springsource.org/spring/docs/3.1.x/javadoc-api"
|
||||
] as String[]
|
||||
}
|
||||
|
||||
subprojects { subproject ->
|
||||
@@ -218,6 +223,8 @@ task api(type: Javadoc) {
|
||||
options.author = true
|
||||
options.header = rootProject.description
|
||||
options.overview = 'src/api/overview.html'
|
||||
options.links(rootProject.ext.javadocLinks)
|
||||
|
||||
source subprojects.collect { project ->
|
||||
project.sourceSets.main.allJava
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
* Copyright 2002-2013 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,7 +21,8 @@ import java.util.Map;
|
||||
/**
|
||||
*
|
||||
* @see AmqpAdmin
|
||||
* @deprecated RabbitMQ no longer supports 'x-federation' exchanges.
|
||||
* @deprecated Starting with version 3.0 RabbitMQ no longer supports
|
||||
* 'x-federation' exchanges.
|
||||
*
|
||||
* @author Gary Russell
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2010 the original author or authors.
|
||||
* Copyright 2002-2013 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.amqp.core.MessageProperties;
|
||||
import org.springframework.amqp.utils.SerializationUtils;
|
||||
import org.springframework.beans.factory.BeanClassLoaderAware;
|
||||
import org.springframework.remoting.rmi.CodebaseAwareObjectInputStream;
|
||||
import java.rmi.server.RMIClassLoader;
|
||||
import org.springframework.util.ClassUtils;
|
||||
|
||||
/**
|
||||
|
||||
@@ -229,7 +229,7 @@ public class SingleConnectionFactory implements ConnectionFactory,
|
||||
classes.add(Connection.class);
|
||||
return (Connection) Proxy.newProxyInstance(
|
||||
Connection.class.getClassLoader(),
|
||||
classes.toArray(new Class[classes.size()]),
|
||||
classes.toArray(new Class<?>[classes.size()]),
|
||||
new SharedConnectionInvocationHandler(target));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
* Copyright 2002-2013 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. You may obtain a copy of the License at
|
||||
@@ -14,7 +14,6 @@
|
||||
package org.springframework.amqp.rabbit.config;
|
||||
|
||||
import org.springframework.amqp.core.ExchangeTypes;
|
||||
import org.springframework.amqp.core.FederatedExchange;
|
||||
import org.springframework.beans.factory.support.AbstractBeanDefinition;
|
||||
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
|
||||
import org.springframework.beans.factory.xml.ParserContext;
|
||||
@@ -43,7 +42,7 @@ public class FederatedExchangeParser extends AbstractExchangeParser {
|
||||
|
||||
@Override
|
||||
protected Class<?> getBeanClass(Element element) {
|
||||
return FederatedExchange.class;
|
||||
return org.springframework.amqp.core.FederatedExchange.class;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
* Copyright 2002-2013 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. You may obtain a copy of the License at
|
||||
@@ -190,10 +190,10 @@ public class CachingConnectionFactory extends AbstractConnectionFactory {
|
||||
getChannelListener().onCreate(targetChannel, transactional);
|
||||
Class<?>[] interfaces;
|
||||
if (this.publisherConfirms || this.publisherReturns) {
|
||||
interfaces = new Class[] { ChannelProxy.class, PublisherCallbackChannel.class };
|
||||
interfaces = new Class<?>[] { ChannelProxy.class, PublisherCallbackChannel.class };
|
||||
}
|
||||
else {
|
||||
interfaces = new Class[] { ChannelProxy.class };
|
||||
interfaces = new Class<?>[] { ChannelProxy.class };
|
||||
}
|
||||
return (ChannelProxy) Proxy.newProxyInstance(ChannelProxy.class.getClassLoader(),
|
||||
interfaces, new CachedChannelInvocationHandler(targetChannel, channelList,
|
||||
|
||||
Reference in New Issue
Block a user