Skip to content

Allow access to the errorHandler and messageAckListener values of an AbstractMessageListenerContainer #2978

Closed
@tirz

Description

@tirz

Expected Behavior

I was wondering if there were any reasons why the getMessageAckListener() function for the AbstractMessageListenerContainer class would be protected while the setter is public.
This is also true for setErrorHandler() which is public, but the getter does not exist.

Current Behavior

The class org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer :

  • getMessageAckListener() is protected ;
  • does not contain a getErrorHandler() function ;

Context

I'm currently in a situation where I need a decorator pattern for the MessageListenerContainer and MessageListener interfaces, But not having access to getMessageAckListener() and getErrorHandler() makes delegation difficult.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions