AMQP: use package object rather than AMQP object
I thought it was a little strange that the types akka-amqp such as ConnectionParameters (everything, really) were in akka.amqp.AMQP._ rather than just in akka.amqp._
I would expect the AMQP object to contain methods such as newConnection, but not all the types.
The problem was that I wanted to import all the types, but then I had generic-sounding functions like "newConnection" imported as well.
Anyhow the extra AMQP namespace just seems redundant.
I would expect the AMQP object to contain methods such as newConnection, but not all the types.
The problem was that I wanted to import all the types, but then I had generic-sounding functions like "newConnection" imported as well.
Anyhow the extra AMQP namespace just seems redundant.
Leave a comment
on 2011-10-07 13:41 *
By viktorklang
Summary changed from use package object rather than AMQP object to AMQP: use package object rather than AMQP object
Updating tickets (#1129, #1132, #1138, #1149, #1153, #1154, #1157, #1161, #1163, #1168, #1170, #1171, #1172, #1176, #1177, #1178, #1180, #1199, #1217, #1218, #1219, #1237, #1238, #1239, #1244, #1246, #1249, #1250, #1251, #1252, #1256, #1301, #1302, #1306, #1395, #1396, #1409, #1418, #455, #891, #895, #912, #956, #972, #1031, #1374, #880, #1125, #1146)