// -------------------------------------------------------------------------
protected AbstractMessageListenerContainer chooseMessageListenerContainerImplementation() {
// TODO we could allow a spring container to auto-inject these objects?
switch (consumerType) {
case Simple:
return isUseVersion102() ? new SimpleMessageListenerContainer102() : new SimpleMessageListenerContainer();
case ServerSessionPool:
return isUseVersion102() ? new ServerSessionMessageListenerContainer102() : new ServerSessionMessageListenerContainer();
case Default:
return isUseVersion102() ? new DefaultMessageListenerContainer102() : new DefaultMessageListenerContainer();
default: