Change package names

This commit is contained in:
Dave Syer
2015-07-08 17:05:33 +01:00
parent 997356cbe5
commit 39d7e244b9
28 changed files with 67 additions and 61 deletions

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.bus.runner;
package org.springframework.cloud.streams;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
@@ -23,10 +23,10 @@ import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.springframework.bus.runner.config.LifecycleConfiguration;
import org.springframework.bus.runner.config.MessageBusAdapterConfiguration;
import org.springframework.bus.runner.config.RabbitServiceConfiguration;
import org.springframework.bus.runner.config.RedisServiceConfiguration;
import org.springframework.cloud.streams.config.LifecycleConfiguration;
import org.springframework.cloud.streams.config.MessageBusAdapterConfiguration;
import org.springframework.cloud.streams.config.RabbitServiceConfiguration;
import org.springframework.cloud.streams.config.RedisServiceConfiguration;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.bus.runner.adapter;
package org.springframework.cloud.streams.adapter;
/**
* Represents a binding between a local and remote message channel.

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.bus.runner.adapter;
package org.springframework.cloud.streams.adapter;
/**
* @author Dave Syer

View File

@@ -14,12 +14,12 @@
* limitations under the License.
*/
package org.springframework.bus.runner.adapter;
package org.springframework.cloud.streams.adapter;
import java.util.Collection;
import java.util.Collections;
import org.springframework.bus.runner.config.MessageBusProperties;
import org.springframework.cloud.streams.config.MessageBusProperties;
/**
* @author Dave Syer

View File

@@ -14,9 +14,9 @@
* limitations under the License.
*/
package org.springframework.bus.runner.adapter;
package org.springframework.cloud.streams.adapter;
import org.springframework.bus.runner.config.MessageBusProperties;
import org.springframework.cloud.streams.config.MessageBusProperties;
import org.springframework.util.StringUtils;
/**

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.bus.runner.adapter;
package org.springframework.cloud.streams.adapter;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.bus.runner.adapter;
package org.springframework.cloud.streams.adapter;
/**
* @author Dave Syer

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.bus.runner.adapter;
package org.springframework.cloud.streams.adapter;
import java.util.ArrayList;
import java.util.Collection;
@@ -29,7 +29,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeansException;
import org.springframework.bus.runner.config.MessageBusProperties;
import org.springframework.cloud.streams.config.MessageBusProperties;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.context.ConfigurableApplicationContext;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.bus.runner.adapter;
package org.springframework.cloud.streams.adapter;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.bus.runner.adapter;
package org.springframework.cloud.streams.adapter;
/**

View File

@@ -14,19 +14,19 @@
* limitations under the License.
*/
package org.springframework.bus.runner.adapter.discovery;
package org.springframework.cloud.streams.adapter.discovery;
import javax.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.bus.runner.adapter.ChannelLocator;
import org.springframework.bus.runner.adapter.Output;
import org.springframework.bus.runner.adapter.MessageBusAdapter;
import org.springframework.bus.runner.adapter.Input;
import org.springframework.cloud.client.discovery.DiscoveryClient;
import org.springframework.cloud.client.discovery.event.HeartbeatEvent;
import org.springframework.cloud.client.discovery.event.HeartbeatMonitor;
import org.springframework.cloud.streams.adapter.ChannelLocator;
import org.springframework.cloud.streams.adapter.Input;
import org.springframework.cloud.streams.adapter.MessageBusAdapter;
import org.springframework.cloud.streams.adapter.Output;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.event.EventListener;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.bus.runner.adapter.discovery;
package org.springframework.cloud.streams.adapter.discovery;
import java.net.URI;
import java.util.Collection;
@@ -24,11 +24,11 @@ import java.util.Random;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.bus.runner.adapter.ChannelBinding;
import org.springframework.bus.runner.adapter.ChannelLocator;
import org.springframework.bus.runner.adapter.ChannelsMetadata;
import org.springframework.cloud.client.ServiceInstance;
import org.springframework.cloud.client.discovery.DiscoveryClient;
import org.springframework.cloud.streams.adapter.ChannelBinding;
import org.springframework.cloud.streams.adapter.ChannelLocator;
import org.springframework.cloud.streams.adapter.ChannelsMetadata;
import org.springframework.web.client.RestOperations;
import org.springframework.web.client.RestTemplate;
import org.springframework.web.util.UriComponentsBuilder;

View File

@@ -14,11 +14,11 @@
* limitations under the License.
*/
package org.springframework.bus.runner.config;
package org.springframework.cloud.streams.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.bus.runner.adapter.MessageBusAdapter;
import org.springframework.cloud.streams.adapter.MessageBusAdapter;
import org.springframework.context.annotation.Configuration;
/**

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.bus.runner.config;
package org.springframework.cloud.streams.config;
import java.util.Arrays;
import java.util.Collection;
@@ -29,13 +29,13 @@ import org.springframework.beans.factory.BeanFactoryUtils;
import org.springframework.beans.factory.ListableBeanFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.bus.runner.adapter.ChannelLocator;
import org.springframework.bus.runner.adapter.Input;
import org.springframework.bus.runner.adapter.InputChannelBinding;
import org.springframework.bus.runner.adapter.MessageBusAdapter;
import org.springframework.bus.runner.adapter.Output;
import org.springframework.bus.runner.adapter.OutputChannelBinding;
import org.springframework.bus.runner.endpoint.ChannelsEndpoint;
import org.springframework.cloud.streams.adapter.ChannelLocator;
import org.springframework.cloud.streams.adapter.Input;
import org.springframework.cloud.streams.adapter.InputChannelBinding;
import org.springframework.cloud.streams.adapter.MessageBusAdapter;
import org.springframework.cloud.streams.adapter.Output;
import org.springframework.cloud.streams.adapter.OutputChannelBinding;
import org.springframework.cloud.streams.endpoint.ChannelsEndpoint;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.bus.runner.config;
package org.springframework.cloud.streams.config;
import java.util.Properties;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.bus.runner.config;
package org.springframework.cloud.streams.config;
import org.springframework.amqp.rabbit.connection.ConnectionFactory;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.bus.runner.config;
package org.springframework.cloud.streams.config;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.cloud.Cloud;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.bus.runner.endpoint;
package org.springframework.cloud.streams.endpoint;
import java.util.ArrayList;
import java.util.LinkedHashMap;
@@ -22,9 +22,9 @@ import java.util.List;
import java.util.Map;
import org.springframework.boot.actuate.endpoint.AbstractEndpoint;
import org.springframework.bus.runner.adapter.ChannelsMetadata;
import org.springframework.bus.runner.adapter.MessageBusAdapter;
import org.springframework.bus.runner.adapter.OutputChannelBinding;
import org.springframework.cloud.streams.adapter.ChannelsMetadata;
import org.springframework.cloud.streams.adapter.MessageBusAdapter;
import org.springframework.cloud.streams.adapter.OutputChannelBinding;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

View File

@@ -1,3 +1,3 @@
# AutoConfiguration
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
org.springframework.bus.runner.adapter.discovery.DiscoveryClientAutoConfiguration
org.springframework.cloud.streams.adapter.discovery.DiscoveryClientAutoConfiguration

View File

@@ -13,12 +13,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.bus.runner.adapter;
package org.springframework.cloud.streams.adapter;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import org.springframework.bus.runner.config.MessageBusProperties;
import org.springframework.cloud.streams.adapter.DefaultChannelLocator;
import org.springframework.cloud.streams.config.MessageBusProperties;
/**
* @author Dave Syer

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.bus.runner.adapter;
package org.springframework.cloud.streams.adapter;
import static org.junit.Assert.assertEquals;
import static org.mockito.Matchers.any;
@@ -26,10 +26,13 @@ import java.util.HashSet;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
import org.springframework.bus.runner.adapter.discovery.DiscoveryClientChannelLocator;
import org.springframework.bus.runner.config.MessageBusProperties;
import org.springframework.cloud.client.DefaultServiceInstance;
import org.springframework.cloud.client.discovery.DiscoveryClient;
import org.springframework.cloud.streams.adapter.ChannelsMetadata;
import org.springframework.cloud.streams.adapter.InputChannelBinding;
import org.springframework.cloud.streams.adapter.OutputChannelBinding;
import org.springframework.cloud.streams.adapter.discovery.DiscoveryClientChannelLocator;
import org.springframework.cloud.streams.config.MessageBusProperties;
import org.springframework.web.client.RestOperations;
/**

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.bus.runner.config;
package org.springframework.cloud.streams.config;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
@@ -29,10 +29,12 @@ import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
import org.springframework.boot.test.SpringApplicationConfiguration;
import org.springframework.bus.runner.adapter.ChannelBinding;
import org.springframework.bus.runner.adapter.MessageBusAdapter;
import org.springframework.bus.runner.adapter.OutputChannelBinding;
import org.springframework.bus.runner.config.MessageBusAdapterConfigurationTests.Empty;
import org.springframework.cloud.streams.adapter.ChannelBinding;
import org.springframework.cloud.streams.adapter.MessageBusAdapter;
import org.springframework.cloud.streams.adapter.OutputChannelBinding;
import org.springframework.cloud.streams.config.MessageBusAdapterConfiguration;
import org.springframework.cloud.streams.config.MessageBusProperties;
import org.springframework.cloud.streams.config.MessageBusAdapterConfigurationTests.Empty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.bus.xd.bootstrap;
package org.springframework.cloud.streams.xd;
import java.util.ArrayList;
import java.util.LinkedHashMap;
@@ -24,7 +24,7 @@ import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.bus.runner.config.MessageBusProperties;
import org.springframework.cloud.streams.config.MessageBusProperties;
import org.springframework.context.ApplicationContextInitializer;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Bean;

View File

@@ -1,2 +1,2 @@
org.springframework.cloud.bootstrap.BootstrapConfiguration:\
org.springframework.bus.xd.bootstrap.ModuleOptionsPropertySourceInitializer
org.springframework.cloud.streams.xd.ModuleOptionsPropertySourceInitializer

View File

@@ -2,7 +2,7 @@ package demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.bus.runner.EnableMessageBus;
import org.springframework.cloud.streams.EnableMessageBus;
import org.springframework.context.annotation.ComponentScan;
import config.ModuleDefinition;

View File

@@ -2,7 +2,7 @@ package demo;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.bus.runner.EnableMessageBus;
import org.springframework.cloud.streams.EnableMessageBus;
import org.springframework.context.annotation.ImportResource;
import org.springframework.context.annotation.PropertySource;

View File

@@ -2,7 +2,7 @@ package demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.bus.runner.EnableMessageBus;
import org.springframework.cloud.streams.EnableMessageBus;
import org.springframework.context.annotation.ComponentScan;
import config.ModuleDefinition;

View File

@@ -2,7 +2,7 @@ package demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.bus.runner.EnableMessageBus;
import org.springframework.cloud.streams.EnableMessageBus;
import org.springframework.context.annotation.ComponentScan;
import config.ModuleDefinition;