@@ -1067,8 +1067,9 @@ protected AddressResolver createAddressResolver(List<Address> addresses) {
10671067 * @since 4.4.0
10681068 * @see ConnectionFactoryConfigurator
10691069 */
1070- public void load (String propertyFileLocation ) throws IOException {
1070+ public ConnectionFactory load (String propertyFileLocation ) throws IOException {
10711071 ConnectionFactoryConfigurator .load (this , propertyFileLocation );
1072+ return this ;
10721073 }
10731074
10741075 /**
@@ -1079,8 +1080,9 @@ public void load(String propertyFileLocation) throws IOException {
10791080 * @since 4.4.0
10801081 * @see ConnectionFactoryConfigurator
10811082 */
1082- public void load (String propertyFileLocation , String prefix ) throws IOException {
1083+ public ConnectionFactory load (String propertyFileLocation , String prefix ) throws IOException {
10831084 ConnectionFactoryConfigurator .load (this , propertyFileLocation , prefix );
1085+ return this ;
10841086 }
10851087
10861088 /**
@@ -1090,8 +1092,9 @@ public void load(String propertyFileLocation, String prefix) throws IOException
10901092 * @since 4.4.0
10911093 * @see ConnectionFactoryConfigurator
10921094 */
1093- public void load (Properties properties ) {
1095+ public ConnectionFactory load (Properties properties ) {
10941096 ConnectionFactoryConfigurator .load (this , properties );
1097+ return this ;
10951098 }
10961099
10971100 /**
@@ -1101,8 +1104,9 @@ public void load(Properties properties) {
11011104 * @since 4.4.0
11021105 * @see ConnectionFactoryConfigurator
11031106 */
1104- public void load (Properties properties , String prefix ) {
1107+ public ConnectionFactory load (Properties properties , String prefix ) {
11051108 ConnectionFactoryConfigurator .load (this , (Map ) properties , prefix );
1109+ return this ;
11061110 }
11071111
11081112 /**
@@ -1112,8 +1116,9 @@ public void load(Properties properties, String prefix) {
11121116 * @since 4.4.0
11131117 * @see ConnectionFactoryConfigurator
11141118 */
1115- public void load (Map <String , String > properties ) {
1119+ public ConnectionFactory load (Map <String , String > properties ) {
11161120 ConnectionFactoryConfigurator .load (this , properties );
1121+ return this ;
11171122 }
11181123
11191124 /**
@@ -1123,8 +1128,9 @@ public void load(Map<String, String> properties) {
11231128 * @since 4.4.0
11241129 * @see ConnectionFactoryConfigurator
11251130 */
1126- public void load (Map <String , String > properties , String prefix ) {
1131+ public ConnectionFactory load (Map <String , String > properties , String prefix ) {
11271132 ConnectionFactoryConfigurator .load (this , properties , prefix );
1133+ return this ;
11281134 }
11291135
11301136 /**
0 commit comments