Skip to content

Commit 6a9c1ab

Browse files
committed
Rename ConnectionFactoryConfigurer to ConnectionFactoryConfigurator
References #324
1 parent e9b642f commit 6a9c1ab

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

src/main/java/com/rabbitmq/client/ConnectionFactory.java

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,66 +1065,66 @@ protected AddressResolver createAddressResolver(List<Address> addresses) {
10651065
* @param propertyFileLocation location of the property file to use
10661066
* @throws IOException when something goes wrong reading the file
10671067
* @since 4.4.0
1068-
* @see ConnectionFactoryConfigurer
1068+
* @see ConnectionFactoryConfigurator
10691069
*/
10701070
public void load(String propertyFileLocation) throws IOException {
1071-
ConnectionFactoryConfigurer.load(this, propertyFileLocation);
1071+
ConnectionFactoryConfigurator.load(this, propertyFileLocation);
10721072
}
10731073

10741074
/**
10751075
* Load settings from a property file.
10761076
* @param propertyFileLocation location of the property file to use
1077-
* @param prefix prefix used in the property file keys
1077+
* @param prefix key prefix for the entries in the file
10781078
* @throws IOException when something goes wrong reading the file
10791079
* @since 4.4.0
1080-
* @see ConnectionFactoryConfigurer
1080+
* @see ConnectionFactoryConfigurator
10811081
*/
10821082
public void load(String propertyFileLocation, String prefix) throws IOException {
1083-
ConnectionFactoryConfigurer.load(this, propertyFileLocation, prefix);
1083+
ConnectionFactoryConfigurator.load(this, propertyFileLocation, prefix);
10841084
}
10851085

10861086
/**
10871087
* Load settings from a {@link Properties} instance.
10881088
* The default prefix for keys is <code>rabbitmq.</code>
10891089
* @param properties source for settings
10901090
* @since 4.4.0
1091-
* @see ConnectionFactoryConfigurer
1091+
* @see ConnectionFactoryConfigurator
10921092
*/
10931093
public void load(Properties properties) {
1094-
ConnectionFactoryConfigurer.load(this, properties);
1094+
ConnectionFactoryConfigurator.load(this, properties);
10951095
}
10961096

10971097
/**
10981098
* Load settings from a {@link Properties} instance.
10991099
* @param properties source for settings
1100-
* @param prefix prefix used in keys
1100+
* @param prefix key prefix for properties entries
11011101
* @since 4.4.0
1102-
* @see ConnectionFactoryConfigurer
1102+
* @see ConnectionFactoryConfigurator
11031103
*/
11041104
public void load(Properties properties, String prefix) {
1105-
ConnectionFactoryConfigurer.load(this, (Map) properties, prefix);
1105+
ConnectionFactoryConfigurator.load(this, (Map) properties, prefix);
11061106
}
11071107

11081108
/**
11091109
* Load settings from a {@link Map} instance.
11101110
* The default prefix for keys is <code>rabbitmq.</code>
11111111
* @param properties source for settings
11121112
* @since 4.4.0
1113-
* @see ConnectionFactoryConfigurer
1113+
* @see ConnectionFactoryConfigurator
11141114
*/
11151115
public void load(Map<String, String> properties) {
1116-
ConnectionFactoryConfigurer.load(this, properties);
1116+
ConnectionFactoryConfigurator.load(this, properties);
11171117
}
11181118

11191119
/**
11201120
* Load settings from a {@link Map} instance.
11211121
* @param properties source for settings
1122-
* @param prefix prefix used in keys
1122+
* @param prefix key prefix for map entries
11231123
* @since 4.4.0
1124-
* @see ConnectionFactoryConfigurer
1124+
* @see ConnectionFactoryConfigurator
11251125
*/
11261126
public void load(Map<String, String> properties, String prefix) {
1127-
ConnectionFactoryConfigurer.load(this, properties, prefix);
1127+
ConnectionFactoryConfigurator.load(this, properties, prefix);
11281128
}
11291129

11301130
/**

src/main/java/com/rabbitmq/client/ConnectionFactoryConfigurer.java renamed to src/main/java/com/rabbitmq/client/ConnectionFactoryConfigurator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
* @since 4.4.0
4949
* @see ConnectionFactory#load(String, String)
5050
*/
51-
public class ConnectionFactoryConfigurer {
51+
public class ConnectionFactoryConfigurator {
5252

5353
public static final String DEFAULT_PREFIX = "rabbitmq.";
5454

@@ -85,7 +85,7 @@ public static void load(ConnectionFactory cf, String propertyFileLocation, Strin
8585
if (propertyFileLocation.startsWith("classpath:")) {
8686
InputStream in = null;
8787
try {
88-
in = ConnectionFactoryConfigurer.class.getResourceAsStream(
88+
in = ConnectionFactoryConfigurator.class.getResourceAsStream(
8989
propertyFileLocation.substring("classpath:".length())
9090
);
9191
properties.load(in);

src/test/java/com/rabbitmq/client/test/PropertyFileInitialisationTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
package com.rabbitmq.client.test;
1717

1818
import com.rabbitmq.client.ConnectionFactory;
19-
import com.rabbitmq.client.ConnectionFactoryConfigurer;
19+
import com.rabbitmq.client.ConnectionFactoryConfigurator;
2020
import org.junit.Test;
2121
import org.junit.runner.RunWith;
2222
import org.junit.runners.Parameterized;
@@ -160,7 +160,7 @@ private Properties getPropertiesWitPrefix(String prefix) throws IOException {
160160
Properties propertiesCustomPrefix = new Properties();
161161
for (Map.Entry<Object, Object> entry : properties.entrySet()) {
162162
propertiesCustomPrefix.put(
163-
prefix + entry.getKey().toString().substring(ConnectionFactoryConfigurer.DEFAULT_PREFIX.length()),
163+
prefix + entry.getKey().toString().substring(ConnectionFactoryConfigurator.DEFAULT_PREFIX.length()),
164164
entry.getValue()
165165
);
166166
}

0 commit comments

Comments
 (0)