@@ -1067,8 +1067,9 @@ protected AddressResolver createAddressResolver(List<Address> addresses) {
1067
1067
* @since 4.4.0
1068
1068
* @see ConnectionFactoryConfigurator
1069
1069
*/
1070
- public void load (String propertyFileLocation ) throws IOException {
1070
+ public ConnectionFactory load (String propertyFileLocation ) throws IOException {
1071
1071
ConnectionFactoryConfigurator .load (this , propertyFileLocation );
1072
+ return this ;
1072
1073
}
1073
1074
1074
1075
/**
@@ -1079,8 +1080,9 @@ public void load(String propertyFileLocation) throws IOException {
1079
1080
* @since 4.4.0
1080
1081
* @see ConnectionFactoryConfigurator
1081
1082
*/
1082
- public void load (String propertyFileLocation , String prefix ) throws IOException {
1083
+ public ConnectionFactory load (String propertyFileLocation , String prefix ) throws IOException {
1083
1084
ConnectionFactoryConfigurator .load (this , propertyFileLocation , prefix );
1085
+ return this ;
1084
1086
}
1085
1087
1086
1088
/**
@@ -1090,8 +1092,9 @@ public void load(String propertyFileLocation, String prefix) throws IOException
1090
1092
* @since 4.4.0
1091
1093
* @see ConnectionFactoryConfigurator
1092
1094
*/
1093
- public void load (Properties properties ) {
1095
+ public ConnectionFactory load (Properties properties ) {
1094
1096
ConnectionFactoryConfigurator .load (this , properties );
1097
+ return this ;
1095
1098
}
1096
1099
1097
1100
/**
@@ -1101,8 +1104,9 @@ public void load(Properties properties) {
1101
1104
* @since 4.4.0
1102
1105
* @see ConnectionFactoryConfigurator
1103
1106
*/
1104
- public void load (Properties properties , String prefix ) {
1107
+ public ConnectionFactory load (Properties properties , String prefix ) {
1105
1108
ConnectionFactoryConfigurator .load (this , (Map ) properties , prefix );
1109
+ return this ;
1106
1110
}
1107
1111
1108
1112
/**
@@ -1112,8 +1116,9 @@ public void load(Properties properties, String prefix) {
1112
1116
* @since 4.4.0
1113
1117
* @see ConnectionFactoryConfigurator
1114
1118
*/
1115
- public void load (Map <String , String > properties ) {
1119
+ public ConnectionFactory load (Map <String , String > properties ) {
1116
1120
ConnectionFactoryConfigurator .load (this , properties );
1121
+ return this ;
1117
1122
}
1118
1123
1119
1124
/**
@@ -1123,8 +1128,9 @@ public void load(Map<String, String> properties) {
1123
1128
* @since 4.4.0
1124
1129
* @see ConnectionFactoryConfigurator
1125
1130
*/
1126
- public void load (Map <String , String > properties , String prefix ) {
1131
+ public ConnectionFactory load (Map <String , String > properties , String prefix ) {
1127
1132
ConnectionFactoryConfigurator .load (this , properties , prefix );
1133
+ return this ;
1128
1134
}
1129
1135
1130
1136
/**
0 commit comments